You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by ant elder <an...@gmail.com> on 2008/08/01 10:53:50 UTC

Re: Problem running JMS callback example

Hi Michael,

That callbacks-jms sample has a jndi.properties file which configures
ActiveMQ to just use an in-VM broker so outside clients wont be able to use
the service with that configuration. You should be able to change the config
so external clients can also connect to the broker, there is some
information on this in the Tuscany doc on the jms binding, see [1], in the
section on "Configuring JMS resources". For example, changing the
jndi.properties file to have the following provider url might do what you
want:

   java.naming.provider.url = vm:broker:(tcp://localhost:61616)

(Note i've not tried that, its more about ActiveMQ configuration and I'm no
ActiveMQ expert)

As an alternative you could start a jms broker outside of Tuscany and have
both your non-SCA client and Tuscany use that broker. There is an example of
doing that in the Tuscany tests at [2].

Please do post back with how you get on with this. Tuscany JMS interop with
non-SCA applications is something I'm thinking about right now so any
feedback you can give on problems or improvements would be great.

Not sure about the email reply problem, i thought the user list was
configured to have the replyTo go to the list, you could just replace the
email address with user@tuscany.apache.org? (I've CC'd the list with this
reply, hope that is ok)

   ...ant

[1] http://tuscany.apache.org/sca-java-bindingjms.html
[2]
https://svn.apache.org/repos/asf/tuscany/java/sca/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java


On Thu, Jul 31, 2008 at 8:05 PM, Benowitz, Michael <
Michael.Benowitz@gdit.com> wrote:

>  Thanks, I was using the 1.2.1 release version.  Another question I have
> is, how can I get an outside client (not using Tuscany) to communicate with
> the service in that example?  The provider URL in the supplied
> jndi.properties file is not accepted as valid in creating a
> javax.naming.InitialContext, and if I change the jndi.properties file to use
> the local directory that I've been using for my non-Tuscany JMS demos, the
> SCADomain initialization fails with the message: "Could not find factory
> class for resource: META-INF/services/org/apache/activemq/transport/file".
>
>
>
> Also, I don't know how to post a reply on these threads; I just hit the
> "Reply via email" button.
>
>
>
> Thank you,
>
> Mike
>