IBM now owns webMethods and is moving customers to new subscription pricing

From webMethods Integration Server to Spring Boot 3, Camel, Kafka and an API gateway

A working, self contained migration of a sample trading partner order intake package: flow services, a publishable document, a trigger, a JDBC adapter and a mapping. Built with sample code only. Test and smoke results on this page come from a real run on this box; the audit log is a scripted replay of the workflow.

Delivering enterprise software since 2015. Now modernizing it with Safe AI.

Recorded walkthrough

A short narrated walkthrough of this migration demo. Delivering enterprise software since 2015. Now modernizing it with Safe AI.

Results at a glance

12 of 12 tests passOrder service: map parity, outbox atomicity and rollback, end to end flow. Gateway: API key and rate limit.
Smoke test PASSdocker compose (gateway, order service, Kafka 3.8): 401 without key, orders routed via outbox and Kafka, 429 after a burst.
24 audit entriesHash chained, append only log covering 5 phases and 6 human decisions, including one change request.

Architecture: before and after

Before webMethods Integration Server 10.15 + Universal Messaging REST resource orders.apiIS ACL, port access flow receiveOrdervalidate, JDBC insert JDBC AdapterinsertOrder, commit pub.publish:publishOrderDoc, guaranteed Trigger fulfillmentTriggerserial, 3 retries flow routeToFulfillmentmap, BRANCH, pub.client:http dual write trading partners call IS directly with IS user credentials
After Containers on ECS / EKS / Azure Container Apps, Java 21 Spring Cloud GatewayAPI key, rate limit 429 @Service OrderServiceorder + outbox, 1 tx PURCHASE_ORDER+ OUTBOX_EVENT Outbox relay to Kafkaorders.intake, keyed Camel route order-intakemap, choice by lane fulfillment.expressfulfillment.standard poll lanes deliver to fulfillment; failures to orders.dlt

Component mapping

webMethods Integration ServerSpring Boot 3 / Camel / KafkaNotes
Flow service orders.intake:receiveOrder@Service OrderService with @TransactionalValidation and defaults kept one to one
JDBC Adapter connection + InsertSQL serviceSpring Data JPA repository on the same PURCHASE_ORDER tablePostgres driver included
pub.publish:publish after DB commit (dual write)Transactional outbox: OUTBOX_EVENT row in the same transaction, relay to KafkaOrder and event commit together, no lost events
Publishable document type OrderDoc (guaranteed)Kafka topic orders.intake keyed by order id, JSON record OrderPlacedEvent
webMethods Messaging trigger fulfillmentTriggerCamel from(kafka:orders.intake) consumer groupSerial per key via partitioning
Trigger retries + suspend, Monitor resubmitCamel deadLetterChannel, 3 retries with backoff, topic orders.dlt
Trigger duplicate detectionIdempotent consumer: status update by order idAt least once delivery is safe
Map step: pub.string:concat, toUpper, pub.math:multiplyFloatsOrderToFulfillmentMapper (typed Java) with parity tests
BRANCH on serviceLevel + pub.client:httpCamel choice() to fulfillment lanes + RestClient gatewayBase URL is configuration
REST resource orders.api:orders@RestController behind the gatewaySame /api/orders contract
IS ACL TradingPartners + port access rulesSpring Cloud Gateway: X-API-Key filter, partner id headerKeys from a secret store in production
No per partner throttlingRequestRateLimiter with per partner token bucket (429)Redis limiter needed before scaling the gateway out
IS cluster + Universal Messaging realmDocker images, ECS tasks, EKS Deployments, Azure Container AppsManifests in after/deploy, not applied

Side by side code

Intake: flow service to @Service with an outbox

Before
before/packages/OrderIntake/ns/orders/intake/receiveOrder/flow.xml
    <INVOKE TIMEOUT="" SERVICE="orders.adapters.OrderDB:insertOrder" VALIDATE-IN="$none" VALIDATE-OUT="$none">
      <MAP MODE="INPUT">
        <MAPCOPY FROM="/order;2;0/partnerId;1;0" TO="/insertOrderInput;2;0/CUSTOMER_ID;1;0"/>
        <MAPCOPY FROM="/order;2;0/sku;1;0" TO="/insertOrderInput;2;0/SKU;1;0"/>
        <MAPCOPY FROM="/order;2;0/quantity;1;0" TO="/insertOrderInput;2;0/QUANTITY;1;0"/>
        <MAPCOPY FROM="/order;2;0/unitPrice;1;0" TO="/insertOrderInput;2;0/UNIT_PRICE;1;0"/>
        <MAPCOPY FROM="/order;2;0/shipCountry;1;0" TO="/insertOrderInput;2;0/SHIP_COUNTRY;1;0"/>
        <MAPCOPY FROM="/order;2;0/priority;1;0" TO="/insertOrderInput;2;0/PRIORITY;1;0"/>
      </MAP>
      <MAP MODE="OUTPUT"><MAPCOPY FROM="/insertOrderOutput;2;0/ORDER_ID;1;0" TO="/order;2;0/orderId;1;0"/></MAP>
    </INVOKE>
    <INVOKE TIMEOUT="" SERVICE="pub.art.transaction:commitTransaction" VALIDATE-IN="$none" VALIDATE-OUT="$none"/>
    <!-- Dual write: the DB commit above and this publish are NOT atomic -->
    <INVOKE TIMEOUT="" SERVICE="pub.publish:publish" VALIDATE-IN="$none" VALIDATE-OUT="$none">
      <MAP MODE="INPUT">
        <MAPSET NAME="setter" FIELD="/documentTypeName;1;0"><DATA ENCODING="XMLValues"><Values version="2.0"><value name="xml">orders.docs:OrderDoc</value></Values></DATA></MAPSET>
        <MAPCOPY FROM="/order;2;0" TO="/document;2;0"/>
      </MAP>
    </INVOKE>
    <MAP MODE="STANDALONE"><MAPSET NAME="setter" FIELD="/$httpStatus;1;0"><DATA ENCODING="XMLValues"><Values version="2.0"><value name="xml">201</value></Values></DATA></MAPSET></MAP>
  </SEQUENCE>
  <SEQUENCE NAME="catch" EXIT-ON="DONE">
After
after/order-service/src/main/java/com/surconsulting/demo/wmorders/service/OrderService.java

    @Transactional
    public PurchaseOrder placeOrder(PurchaseOrder order) {
        if (order.getQuantity() == null || order.getQuantity() <= 0) {
            throw new IllegalArgumentException("quantity must be positive");
        }
        if (order.getPriority() == null) {
            order.setPriority(PurchaseOrder.Priority.STANDARD);
        }
        order.setStatus("SUBMITTED");
        PurchaseOrder saved = orders.save(order);
        outbox.save(new OutboxEvent(saved.getId(), "OrderPlaced", toJson(OrderPlacedEvent.of(saved))));
        if ("FAIL-AFTER-OUTBOX".equals(order.getSku())) {
            // test hook: proves order and outbox row roll back together
            throw new IllegalStateException("simulated failure after outbox write");
        }
        return saved;
    }

Publish: dual write to transactional outbox relay

Before
before/packages/OrderIntake/ns/orders/triggers/fulfillmentTrigger/node.ndf
<?xml version="1.0" encoding="UTF-8"?>
<!-- webMethods Messaging trigger orders.triggers:fulfillmentTrigger -->
<Values version="2.0">
  <value name="node_type">webMethods/trigger</value>
  <value name="node_nsName">orders.triggers:fulfillmentTrigger</value>
  <record name="trigger" javaclass="com.wm.util.Values">
    <value name="enabled">true</value>
    <value name="messagingConnectionAlias">IS_UM_CONNECTION</value>
    <array name="conditions" type="record" depth="1">
      <record javaclass="com.wm.util.Values">
        <value name="name">OrderPlaced</value>
        <value name="serviceName">orders.routing:routeToFulfillment</value>
        <array name="messageTypes" type="value" depth="1"><value>orders.docs:OrderDoc</value></array>
        <value name="filter"></value>
      </record>
    </array>
    <value name="processingMode">serial</value>
    <value name="capacity">10</value>
    <value name="refillLevel">4</value>
    <value name="maxRetryAttempts">3</value>
    <value name="retryInterval">10000</value>
    <value name="onRetryFailure">suspend</value>
    <value name="detectDuplicates">true</value>
    <value name="dupHistoryTTL">7200000</value>
    <value name="acknowledgementQueueSize">1</value>
  </record>
</Values>
After
after/order-service/src/main/java/com/surconsulting/demo/wmorders/integration/OutboxRelay.java
            try {
                producer.sendBodyAndHeader(target, e.getPayload(), "kafka.KEY", String.valueOf(e.getAggregateId()));
                e.markPublished();
                sent++;
            } catch (Exception ex) {
                log.warn("outbox relay failed for event {} (attempt {}): {}", e.getId(), e.getAttempts(), ex.getMessage());
                break;
            }
        }
        return sent;
    }
}

Mapping: flow map step to typed Java

Before
before/packages/OrderIntake/ns/orders/intake/mapToFulfillment/flow.xml
  <MAP NAME="OrderDoc to FulfillmentRequest" MODE="STANDALONE">
    <MAPINVOKE SERVICE="pub.string:concat">
      <MAP MODE="INVOKEINPUT">
        <MAPSET NAME="setter" FIELD="/inString1;1;0"><DATA ENCODING="XMLValues"><Values version="2.0"><value name="xml">PO-</value></Values></DATA></MAPSET>
        <MAPCOPY FROM="/order;2;0/orderId;1;0" TO="/inString2;1;0"/>
      </MAP>
      <MAP MODE="INVOKEOUTPUT"><MAPCOPY FROM="/value;1;0" TO="/request;2;0/externalRef;1;0"/></MAP>
    </MAPINVOKE>
    <MAPINVOKE SERVICE="pub.string:toUpper">
      <MAP MODE="INVOKEINPUT"><MAPCOPY FROM="/order;2;0/sku;1;0" TO="/inString;1;0"/></MAP>
      <MAP MODE="INVOKEOUTPUT"><MAPCOPY FROM="/value;1;0" TO="/request;2;0/line;2;0/sku;1;0"/></MAP>
    </MAPINVOKE>
    <MAPINVOKE SERVICE="pub.math:multiplyFloats">
      <MAP MODE="INVOKEINPUT">
        <MAPCOPY FROM="/order;2;0/quantity;1;0" TO="/num1;1;0"/>
        <MAPCOPY FROM="/order;2;0/unitPrice;1;0" TO="/num2;1;0"/>
        <MAPSET NAME="setter" FIELD="/precision;1;0"><DATA ENCODING="XMLValues"><Values version="2.0"><value name="xml">2</value></Values></DATA></MAPSET>
      </MAP>
      <MAP MODE="INVOKEOUTPUT"><MAPCOPY FROM="/value;1;0" TO="/request;2;0/line;2;0/amount;1;0"/></MAP>
    </MAPINVOKE>
    <MAPCOPY FROM="/order;2;0/partnerId;1;0" TO="/request;2;0/customer;1;0"/>
    <MAPCOPY FROM="/order;2;0/quantity;1;0" TO="/request;2;0/line;2;0/qty;1;0"/>
    <MAPCOPY FROM="/order;2;0/shipCountry;1;0" TO="/request;2;0/destination;1;0"/>
  </MAP>
  <BRANCH NAME="service level" SWITCH="/order/priority">
    <MAP NAME="EXPRESS" MODE="STANDALONE"><MAPSET NAME="setter" FIELD="/request;2;0/serviceLevel;1;0"><DATA ENCODING="XMLValues"><Values version="2.0"><value name="xml">EXPRESS</value></Values></DATA></MAPSET></MAP>
    <MAP NAME="$default" MODE="STANDALONE"><MAPSET NAME="setter" FIELD="/request;2;0/serviceLevel;1;0"><DATA ENCODING="XMLValues"><Values version="2.0"><value name="xml">STANDARD</value></Values></DATA></MAPSET></MAP>
  </BRANCH>
  <MAP MODE="STANDALONE"><MAPDELETE FIELD="/order;2;0"/></MAP>
</FLOW>
After
after/order-service/src/main/java/com/surconsulting/demo/wmorders/integration/OrderToFulfillmentMapper.java
        BigDecimal price = in.unitPrice() == null ? BigDecimal.ZERO : in.unitPrice();
        return new FulfillmentRequest(
                "PO-" + in.orderId(),                                          // pub.string:concat
                in.customerId(),
                new FulfillmentRequest.Line(
                        in.sku().toUpperCase(Locale.ROOT),                     // pub.string:toUpper
                        in.quantity(),
                        price.multiply(BigDecimal.valueOf(in.quantity()))
                             .setScale(2, RoundingMode.HALF_EVEN)),            // pub.math:multiplyFloats + precision 2
                in.shipCountry(),
                "EXPRESS".equals(in.priority()) ? "EXPRESS" : "STANDARD",      // BRANCH on priority, $default
                "camel-order-routing");
    }
}

Partner access: IS ACL to Spring Cloud Gateway

Before
before/packages/OrderIntake/config/partner-acl.cnf
<?xml version="1.0" encoding="UTF-8"?>
<!-- Integration Server ACL and port access: trading partners authenticate as IS users -->
<Values version="2.0">
  <record name="TradingPartners" javaclass="com.wm.util.Values">
    <array name="allow" type="value" depth="1"><value>TP_GROUP</value></array>
    <array name="deny" type="value" depth="1"/>
  </record>
  <record name="port_5555" javaclass="com.wm.util.Values">
    <value name="protocol">HTTPS</value>
    <value name="accessMode">deny</value>
    <array name="allowedServices" type="value" depth="1"><value>orders.api:orders</value></array>
  </record>
</Values>
After
after/api-gateway/src/main/resources/application.yml
server:
  port: ${PORT:8080}
spring:
  application:
    name: api-gateway
  cloud:
    gateway:
      routes:
        - id: orders
          uri: ${ORDER_SERVICE_URL:http://localhost:8081}
          predicates:
            - Path=/api/orders/**,/api/orders
          filters:
            - name: RequestRateLimiter
              args:
                rate-limiter: "#{@partnerRateLimiter}"
                key-resolver: "#{@partnerKeyResolver}"
gateway:
  replenish-per-second: ${RATE_PER_SECOND:5}
  burst-capacity: ${RATE_BURST:10}
  api-keys:
    # demo keys only; production reads these from a secret store
    - key: ${DEMO_API_KEY:demo-partner-key-123}
      partner: TP-DEMO-001
management:
  endpoints:
    web:
      exposure:
        include: health
after/api-gateway/src/main/java/com/surconsulting/demo/gateway/ApiKeyFilter.java
        String key = exchange.getRequest().getHeaders().getFirst("X-API-Key");
        String partner = key == null ? null : lookup(key);
        if (partner == null) {
            exchange.getResponse().setStatusCode(HttpStatus.UNAUTHORIZED);
            exchange.getResponse().getHeaders().add("WWW-Authenticate", "ApiKey realm=\"orders\"");
            return exchange.getResponse().setComplete();
        }
        exchange.getAttributes().put(PARTNER_ATTR, partner);
        ServerHttpRequest req = exchange.getRequest().mutate()
                .headers(h -> { h.remove("X-API-Key"); h.set("X-Partner-Id", partner); }).build();
        return chain.filter(exchange.mutate().request(req).build());
    }

    private String lookup(String key) {
        // constant time compare against every configured key

Test results (real run, Java 21, Maven 3.9, two services)

[order-service] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 s -- in com.surconsulting.demo.wmorders.OrderToFulfillmentMapperTest
[order-service] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.501 s -- in com.surconsulting.demo.wmorders.OutboxTest
[order-service] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.295 s -- in com.surconsulting.demo.wmorders.OrderFlowIntegrationTest
[order-service] [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0
[order-service] [INFO] BUILD SUCCESS
[api-gateway] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.293 s -- in com.surconsulting.demo.gateway.GatewayTest
[api-gateway] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[api-gateway] [INFO] BUILD SUCCESS

docker compose smoke test

gateway health: {"status":"UP"}  order-service health: {"status":"UP"}
PASS no API key rejected by gateway (401)
PASS wrong API key rejected by gateway (401)
placed via gateway: express order 1, standard order 2
PASS order 1 status=ROUTED_EXPRESS (outbox, Kafka, Camel, fulfillment)
PASS order 2 status=ROUTED_STANDARD (outbox, Kafka, Camel, fulfillment)
outbox: {"pending":0,"total":2}
PASS outbox rows written and all relayed (pending=0)
PASS invalid quantity rejected (400)
burst of 25 requests:      11 200      14 429 
PASS rate limit enforced (429 after burst)
SMOKE TEST: PASS

Kafka topics after the run

$ kafka-topics.sh --list
__consumer_offsets
fulfillment.express
fulfillment.standard
orders.intake

$ docker compose ps
NAME                    IMAGE                 STATUS
after-api-gateway-1     after-api-gateway     Up 32 seconds (healthy)
after-kafka-1           apache/kafka:3.8.0    Up 39 seconds (healthy)
after-order-service-1   after-order-service   Up 32 seconds (healthy)

Safe AI guardrails: agents work, humans approve

Sur's agents only act inside the current phase. Nothing moves forward without a named human role approving. Every action and decision lands in an append only JSON lines log where each entry carries the SHA-256 of the one before it, so edits or deletions are detectable.

Assessagent works
human gate
Planagent works
human gate
Migrateagent works
human gate
Verifyagent works
human gate
Releaseagent works
human gate

Audit log excerpt (guardrails/audit-log.jsonl)

Time (ET)PhaseActorActionDetailprev_hash
09:03assessagent:assessorinventoryScanned IS package OrderIntake: 3 flow services, 2 document types (1 publishable), 1 messaging trigger, JDBC adapter connection and InsertSQL service, REST resource, ACL and port access config.0000000000
09:06assessagent:assessorrisk_scanFlagged: DB commit then pub.publish:publish is a dual write (order saved, event lost on crash). Trigger duplicate detection must be preserved. Partner auth lives in IS ACLs.3f0a41a38d
09:09assessagent:assessorreportProposed component mapping table drafted for review.9f83cd6b06
09:29assesshuman:sur-solution-architectchanges_requestedClose the dual write gap with a transactional outbox, and keep partner level rate limits.ff68cbc31c
09:32assessagent:assessorreviseAdded transactional outbox (OUTBOX_EVENT) and gateway per partner token bucket to the target design.ef1a6b7b3c
09:52assesshuman:sur-solution-architectapprovedAssessment accepted.d2d428b39e
09:55planagent:plannerplanTarget: Spring Boot 3.3, Java 21, Camel 4.8, Kafka, Spring Cloud Gateway 2023.0. Topics orders.intake, fulfillment.express, fulfillment.standard, orders.dlt.869e0b1cc5
09:58planagent:plannertest_strategyMap parity tests, outbox atomicity and rollback tests, end to end flow test, gateway auth and rate limit tests.10c28388f4
10:18planhuman:client-change-boardapprovedPlan approved. PURCHASE_ORDER schema unchanged; new OUTBOX_EVENT table allowed.b0cc2fdef7
10:21migrateagent:migratorgeneratereceiveOrder flow to @Service; order and outbox row in one @Transactional.26ba1af1e5
10:24migrateagent:migratorgeneratepub.publish:publish to outbox relay, publish then mark, at least once.587ba32fba
10:27migrateagent:migratorgenerateTrigger plus routeToFulfillment flow to Camel routes on Kafka.c624c638d8
10:30migrateagent:migratorgenerateMap step transformers to typed Java mapper.2f80fdbf0c
10:33migrateagent:migratorgenerateIS ACL and port access to Spring Cloud Gateway: API key filter and per partner rate limiter.425b6c15cc
10:36migrateagent:migratorgenerateDockerfiles, compose, ECS, EKS, Azure Container Apps manifests.7a97a177ec
10:39migrateagent:migratorpolicy_checkNo secrets in code (demo key is a placeholder default), no client identifiers, all endpoints configurable. PASS.2d10408e8e
10:59migratehuman:sur-tech-leadapprovedCode review done. Diff reviewed line by line.ce7d627611
11:02verifyagent:verifierrun_tests12 tests, 0 failures, 0 errors.b6eac0b2c0
11:05verifyagent:verifiersmoke_test401 without key, orders routed through outbox and Kafka, outbox drained, 429 after burst.4ca64cc3b4
11:08verifyagent:verifierparity_checkexternalRef, upper case sku, amount precision 2, service level default all match.cac80a8a26
11:28verifyhuman:client-qa-leadapprovedVerification evidence accepted.9a4389639b
11:31releaseagent:releaseprepare_releaseRelease candidate 2.0.0 prepared. Manifests rendered, NOT applied.b3f1a8c17d
11:34releaseagent:releaserollback_planPartners cut over one API key at a time; IS REST resource stays live until the last partner moves.0ebd90ea88
11:54releasehuman:client-release-managerapprovedGo for staged partner rollout (demo stops here, nothing deployed).810f63a3ef

Raw JSON lines (first 3)

{"action":"inventory","actor":"agent:assessor","detail":"Scanned IS package OrderIntake: 3 flow services, 2 document types (1 publishable), 1 messaging trigger, JDBC adapter connection and InsertSQL service, REST resource, ACL and port access config.","evidence":{"before/packages/OrderIntake/ns/orders/intake/mapToFulfillment/flow.xml":"32727b2c72acef76990043fd6ccab710d5297e88d4e1e9737451e932ef8f0c99","before/packages/OrderIntake/ns/orders/intake/receiveOrder/flow.xml":"a8008dad349485b37f19290f58b854a774126a4c1cae18ab389d074fb1451b99","before/packages/OrderIntake/ns/orders/triggers/fulfillmentTrigger/node.ndf":"cd5c29dd7999793dad538c0e876828d7fc70792c89f833fe20a44fa5e04b3816"},"phase":"assess","prev_hash":"0000000000000000000000000000000000000000000000000000000000000000","target":"before/packages/OrderIntake","ts":"2026-11-02T09:03:00-05:00","type":"agent_action"}
{"action":"risk_scan","actor":"agent:assessor","detail":"Flagged: DB commit then pub.publish:publish is a dual write (order saved, event lost on crash). Trigger duplicate detection must be preserved. Partner auth lives in IS ACLs.","phase":"assess","prev_hash":"3f0a41a38d14bb5996c528e74e4777ad4745bd6fa24fae3d00a32f71fdd65bf5","target":"orders.intake:receiveOrder","ts":"2026-11-02T09:06:00-05:00","type":"agent_action"}
{"action":"report","actor":"agent:assessor","detail":"Proposed component mapping table drafted for review.","phase":"assess","prev_hash":"9f83cd6b06b5aba5b5aeb882d87e4b285c73acd0d96a5b0e887781074154a3f9","target":"docs/index.html#mapping","ts":"2026-11-02T09:09:00-05:00","type":"agent_action"}

Done before, at scale

$3M a year savedTIBCO to Spring Boot migration.
80% less timeHealthcare migration finished in 80% less time.
Since 2015Delivering enterprise software, now with Safe AI guardrails.

Facing a webMethods renewal?

Book a 30 minute webMethods exit assessment with Sur Consulting.

Book your assessment

https://api.leadconnectorhq.com/widget/booking/XQ0u3F5hU4eWzHrCPkHJ