Hi Ray,
Of course there are gotchas! The TContext is used for guaranteed delivery (gd) and thus uses a set of files to store transaction information (similar to gd within the server). These files have gotten corrupted on occasion.
Since this is running outside of the server, you need to create a startup and shutdown class (for the Transaction manager) and figure out when to start it and shut it down. For us, our client was weblogic so we did this when weblogic booted and when it was shutdown. Starting and stopping it for each request caused us problems and is not preferred.
It is fairly involved to create an IData structure with the API itself, so if you already have an XML file I would pass that across - or if it’s flat just pass it as a string. You could always invoke webMethods services to create the IData but we wanted to minimize the network calls.
On a related note, we passed IData from webMethods to a client and because IData is not serializable we used XMLCoder to serialize the IData into a string. You don’t need to do this going the other way though.
Will
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services