UserInterface is Developed in JSF and Jboss is application server, here need to invoke one of webMethods process model which expect broker document as a receive step, to invoke BPM, how to publish the webMethods broker document to the webMethods- broker from JSF , i think by java-broker API can able to publish the document to webMethods broker , can any one help me on this with sample excerices or with steps and also send me java-broker API. and this Canaonical document need to maintain the correlationID in BPM.
thanks for reply, i knew the approach you mentioned here, but i donot want to go this approach, my requirement insisting to write code publish document to the broker. i want it can be done java -broker API in JSF
regards,
Anil Kumar ellendula
You can also write a very simple Java Service using Developer that calls the flow service pub.publish:publish with the incoming doc. After that you can invoke it using the http invoke url technique as posted by kwilliams.
An old thread but perhaps the following is still helpful…
I find it odd to view writing code to publish a document to the Broker as a “requirement.” At best it is a design decision that has been made for you.
As Kevin Williams mentioned, one approach is to use the JMS API along with the Broker as a JMS provider. Another is to use the Broker Java API directly (it’s proprietary). Another is exposing a web service on IS. Yet another is calling an IS service via HTTP get or post (post is probably more appropriate).
If it were me, I’d do plain ol’ XML (POX) over HTTP post.