You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by brmeyer <br...@3riverdev.com> on 2014/08/27 23:09:16 UTC

Remote access to JNDI resources?

Apologies if I'm missing something elementary.  My tomee.xml has the
following:

    <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
        BrokerXmlConfig =  broker:(tcp://localhost:61616)
        ServerUrl       =  vm://localhost
    </Resource>
    <Resource id="ConnectionFactory" type="javax.jms.ConnectionFactory">
        ResourceAdapter = MyJmsResourceAdapter
    </Resource>
    <Resource id="sramp/events/topic" type="javax.jms.Topic"/>

>From a remote application (not on the same JVM), I'm able to use
ActiveMQInitialContextFactory and the tcp://localhost:61616 provider url to
successfully discover "ConnectionFactory".  But, it cannot discover
"sramp/events/topic". What am I missing that would allow the
ConnectionFactory to be accessed externally, but not the Topic?  Supposedly
https://issues.apache.org/jira/browse/TOMEE-393 corrected this.

Thanks!



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Remote-access-to-JNDI-resources-tp4671430.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Remote access to JNDI resources?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
see http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/client-resource-lookup-preview/src/test/java/org/superbiz/client/SenderTest.java

you need to setup your client


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-27 23:09 GMT+02:00 brmeyer <br...@3riverdev.com>:
> Apologies if I'm missing something elementary.  My tomee.xml has the
> following:
>
>     <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
>         BrokerXmlConfig =  broker:(tcp://localhost:61616)
>         ServerUrl       =  vm://localhost
>     </Resource>
>     <Resource id="ConnectionFactory" type="javax.jms.ConnectionFactory">
>         ResourceAdapter = MyJmsResourceAdapter
>     </Resource>
>     <Resource id="sramp/events/topic" type="javax.jms.Topic"/>
>
> From a remote application (not on the same JVM), I'm able to use
> ActiveMQInitialContextFactory and the tcp://localhost:61616 provider url to
> successfully discover "ConnectionFactory".  But, it cannot discover
> "sramp/events/topic". What am I missing that would allow the
> ConnectionFactory to be accessed externally, but not the Topic?  Supposedly
> https://issues.apache.org/jira/browse/TOMEE-393 corrected this.
>
> Thanks!
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Remote-access-to-JNDI-resources-tp4671430.html
> Sent from the TomEE Users mailing list archive at Nabble.com.