You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by flippy <mi...@flipmind.com> on 2006/05/02 09:22:05 UTC
SOAP to Message Queue
Hi,
I am new to ServiceMix. What I want to do is create a service that will
have a soap service(RPC)
with the method debitBank(accountNumber : String, amount : int) : int that
will generate a number for the transaction,
place the details of the transaction onto a message queue and return the
generated transaction ID. Something would listen
on the queue and log the transaction to the database.
How should this be acheived? I have created a SOAP server inside Service
Mix. I can generated the ID, but how do I send the
message out for furter processing?
Do I create a class to hold these to variables? What is the code to get the
message onto the bus so it can be handled by a class that
implements the MessageExchangeListener interface?
I don't want to use JMS directly so as it may turn out that a queue is not
needed.
--
View this message in context: http://www.nabble.com/SOAP-to-Message-Queue-t1535674.html#a4172316
Sent from the ServiceMix - User forum at Nabble.com.
Re: SOAP to Message Queue
Posted by Guillaume Nodet <gn...@gmail.com>.
You can use the jsr181 component and write a simple pojo that will be
exposed on the jbi bus (see the soap-binding example in ServiceMix
distribution). If you add a setContext(ComponentContext context)
method on your pojo, you will receive a JBI component context that you
can use to send another JBI exchange to your database component.
Cheers,
Guillaume Nodet
On 5/2/06, flippy <mi...@flipmind.com> wrote:
>
> Hi,
>
> I am new to ServiceMix. What I want to do is create a service that will
> have a soap service(RPC)
> with the method debitBank(accountNumber : String, amount : int) : int that
> will generate a number for the transaction,
> place the details of the transaction onto a message queue and return the
> generated transaction ID. Something would listen
> on the queue and log the transaction to the database.
>
> How should this be acheived? I have created a SOAP server inside Service
> Mix. I can generated the ID, but how do I send the
> message out for furter processing?
>
> Do I create a class to hold these to variables? What is the code to get the
> message onto the bus so it can be handled by a class that
> implements the MessageExchangeListener interface?
>
> I don't want to use JMS directly so as it may turn out that a queue is not
> needed.
> --
> View this message in context: http://www.nabble.com/SOAP-to-Message-Queue-t1535674.html#a4172316
> Sent from the ServiceMix - User forum at Nabble.com.
>
>