You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Benowitz, Michael" <Mi...@gdit.com> on 2008/07/30 23:11:01 UTC

Problem running JMS callback example

Hello,

 

I am running the example referenced by ant elder in the "Example of
asynchronous programming using Callback
<http://www.mail-archive.com/user@tuscany.apache.org/msg00173.html> "
thread
(http://svn.apache.org/repos/asf/tuscany/java/sca/samples/callbacks-jms
<http://svn.apache.org/repos/asf/tuscany/java/sca/samples/callbacks-jms>
), and it works as expected except that the client never receives the
callback.
 
I have verified that the service is receiving the request, and
OrderServiceImpl is calling placeOrderResponse on a valid-looking
OrderCallback that prints out as [Proxy -
org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler@1860
0d6], and there is no error message, but the placeOrderResponse method
of OrderServiceClient is never invoked.  I increased the sleep time in
the testcase to 50 seconds to make sure the time was not an issue.  What
could be wrong?
 
Thank you,
Mike

Re: Problem running JMS callback example

Posted by ant elder <an...@gmail.com>.
On Thu, Jul 31, 2008 at 10:11 AM, ant elder <an...@gmail.com> wrote:

>
>
> On Wed, Jul 30, 2008 at 10:11 PM, Benowitz, Michael <
> Michael.Benowitz@gdit.com> wrote:
>
>>  Hello,
>>
>>
>>
>> I am running the example referenced by ant elder in the "Example of asynchronous programming using Callback <http://www.mail-archive.com/user@tuscany.apache.org/msg00173.html>" thread (http://svn.apache.org/repos/asf/tuscany/java/sca/samples/callbacks-jms), and it works as expected except that the client never receives the callback.
>>
>>
>>
>> I have verified that the service is receiving the request, and OrderServiceImpl is calling placeOrderResponse on a valid-looking OrderCallback that prints out as [Proxy - org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler@18600d6], and there is no error message, but the placeOrderResponse method of OrderServiceClient is never invoked.  I increased the sleep time in the testcase to 50 seconds to make sure the time was not an issue.  What could be wrong?
>>
>>
>>
>> Thank you,
>>
>> Mike
>>
>>  Which level of the Tuscany code are you using? The JMS callback support
> is new so has not been included in a release yet so you need to use the
> trunk code.
>
>    ...ant
>

Another thing i just remembered from when i was testing this which would
give the symptom you're seeing is that there's a bug in ActiveMQ 4.1 so that
callbacks to temporary queues don't work. Thats fixed in ActiveMQ 5.1.0
which is what the Tuscany sample is using in its pom.xml.

   ...ant

Re: Problem running JMS callback example

Posted by ant elder <an...@gmail.com>.
On Wed, Jul 30, 2008 at 10:11 PM, Benowitz, Michael <
Michael.Benowitz@gdit.com> wrote:

>  Hello,
>
>
>
> I am running the example referenced by ant elder in the "Example of asynchronous programming using Callback <http://www.mail-archive.com/user@tuscany.apache.org/msg00173.html>" thread (http://svn.apache.org/repos/asf/tuscany/java/sca/samples/callbacks-jms), and it works as expected except that the client never receives the callback.
>
>
>
> I have verified that the service is receiving the request, and OrderServiceImpl is calling placeOrderResponse on a valid-looking OrderCallback that prints out as [Proxy - org.apache.tuscany.sca.core.invocation.JDKCallbackInvocationHandler@18600d6], and there is no error message, but the placeOrderResponse method of OrderServiceClient is never invoked.  I increased the sleep time in the testcase to 50 seconds to make sure the time was not an issue.  What could be wrong?
>
>
>
> Thank you,
>
> Mike
>
>  Which level of the Tuscany code are you using? The JMS callback support
is new so has not been included in a release yet so you need to use the
trunk code.

   ...ant