You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by youhaodeyi <yo...@gmail.com> on 2008/04/30 07:56:25 UTC

A question about the loan broker bpel example?

In the loan broker bpel example, a JMSClient is used to invoke the service. I
don't understand why it is invoked by JMS Client. In the source code, the
JMS client sends a message to the queue: "demo.org.servicemix.output". Which
Service is binding to this queue?
-- 
View this message in context: http://www.nabble.com/A-question-about-the-loan-broker-bpel-example--tp16975498p16975498.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: A question about the loan broker bpel example?

Posted by Guillaume Nodet <gn...@gmail.com>.
Can you enable debug logging and see what happens on servicemix side ?

On Wed, Apr 30, 2008 at 8:33 AM, youhaodeyi <yo...@gmail.com> wrote:
>
>  Thanks. I got this error when running this example by ant run:
>
>      [echo] Running example client
>      [java] Connecting to JMS server.
>      [java] Sending request.
>      [java] javax.jms.JMSException:
>  edu.emory.mathcs.backport.java.util.concurre
>  nt.TimeoutException
>      [java]     at
>  org.logicblaze.lingo.jms.impl.MultiplexingRequestor.createJMS
>  Exception(MultiplexingRequestor.java:205)
>      [java]     at
>  org.logicblaze.lingo.jms.impl.MultiplexingRequestor.request(M
>  ultiplexingRequestor.java:133)
>      [java]     at
>  org.logicblaze.lingo.jms.impl.MultiplexingRequestor.request(M
>  ultiplexingRequestor.java:95)
>      [java]     at JMSClient.run(Unknown Source)
>      [java]     at JMSClient.main(Unknown Source)
>      [java] Closing.
>      [java] Java Result: 1
>
>  I have started ServiceMix and deploy the loan-broker-bpel successfully.
>
>
>
>
>  gnodet wrote:
>  >
>  > If you look at the service assembly, there is a service unit deployed
>  > onto servicemix-jms that listens to the demo.org.servicemix.source
>  > queue.
>  > The JMS client specifies that the response should be sent to a queue
>  > named demo.org.servicemix.outputXxx (the Xxx being a random number
>  > that does not change, simply to avoid problems with non empty existing
>  > queues if you run the sample multiple time and do not shut it down
>  > correctly).  This queue is  specified using the JMSReplyTo underneath.
>  >
>  > On Wed, Apr 30, 2008 at 7:56 AM, youhaodeyi <yo...@gmail.com> wrote:
>  >>
>  >>  In the loan broker bpel example, a JMSClient is used to invoke the
>  >> service. I
>  >>  don't understand why it is invoked by JMS Client. In the source code,
>  >> the
>  >>  JMS client sends a message to the queue: "demo.org.servicemix.output".
>  >> Which
>  >>  Service is binding to this queue?
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/A-question-about-the-loan-broker-bpel-example--tp16975498p16975498.html
>  >>  Sent from the ServiceMix - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Cheers,
>  > Guillaume Nodet
>  > ------------------------
>  > Blog: http://gnodet.blogspot.com/
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/A-question-about-the-loan-broker-bpel-example--tp16975498p16976561.html
>
>
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: A question about the loan broker bpel example?

Posted by youhaodeyi <yo...@gmail.com>.
Thanks. I got this error when running this example by ant run:

     [echo] Running example client
     [java] Connecting to JMS server.
     [java] Sending request.
     [java] javax.jms.JMSException:
edu.emory.mathcs.backport.java.util.concurre
nt.TimeoutException
     [java]     at
org.logicblaze.lingo.jms.impl.MultiplexingRequestor.createJMS
Exception(MultiplexingRequestor.java:205)
     [java]     at
org.logicblaze.lingo.jms.impl.MultiplexingRequestor.request(M
ultiplexingRequestor.java:133)
     [java]     at
org.logicblaze.lingo.jms.impl.MultiplexingRequestor.request(M
ultiplexingRequestor.java:95)
     [java]     at JMSClient.run(Unknown Source)
     [java]     at JMSClient.main(Unknown Source)
     [java] Closing.
     [java] Java Result: 1

I have started ServiceMix and deploy the loan-broker-bpel successfully.


gnodet wrote:
> 
> If you look at the service assembly, there is a service unit deployed
> onto servicemix-jms that listens to the demo.org.servicemix.source
> queue.
> The JMS client specifies that the response should be sent to a queue
> named demo.org.servicemix.outputXxx (the Xxx being a random number
> that does not change, simply to avoid problems with non empty existing
> queues if you run the sample multiple time and do not shut it down
> correctly).  This queue is  specified using the JMSReplyTo underneath.
> 
> On Wed, Apr 30, 2008 at 7:56 AM, youhaodeyi <yo...@gmail.com> wrote:
>>
>>  In the loan broker bpel example, a JMSClient is used to invoke the
>> service. I
>>  don't understand why it is invoked by JMS Client. In the source code,
>> the
>>  JMS client sends a message to the queue: "demo.org.servicemix.output".
>> Which
>>  Service is binding to this queue?
>>  --
>>  View this message in context:
>> http://www.nabble.com/A-question-about-the-loan-broker-bpel-example--tp16975498p16975498.html
>>  Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/A-question-about-the-loan-broker-bpel-example--tp16975498p16976561.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: A question about the loan broker bpel example?

Posted by Guillaume Nodet <gn...@gmail.com>.
If you look at the service assembly, there is a service unit deployed
onto servicemix-jms that listens to the demo.org.servicemix.source
queue.
The JMS client specifies that the response should be sent to a queue
named demo.org.servicemix.outputXxx (the Xxx being a random number
that does not change, simply to avoid problems with non empty existing
queues if you run the sample multiple time and do not shut it down
correctly).  This queue is  specified using the JMSReplyTo underneath.

On Wed, Apr 30, 2008 at 7:56 AM, youhaodeyi <yo...@gmail.com> wrote:
>
>  In the loan broker bpel example, a JMSClient is used to invoke the service. I
>  don't understand why it is invoked by JMS Client. In the source code, the
>  JMS client sends a message to the queue: "demo.org.servicemix.output". Which
>  Service is binding to this queue?
>  --
>  View this message in context: http://www.nabble.com/A-question-about-the-loan-broker-bpel-example--tp16975498p16975498.html
>  Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/