[
https://issues.apache.org/jira/browse/GERONIMO-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Jencks closed GERONIMO-3149.
----------------------------------
Resolution: Invalid
Assignee: David Jencks (was: Kevan Miller)
There are several jndi systems here, and you are confusing which one is
available where.
Geronimo provides a java:comp jndi context for jee applications and there are
various ways to configure connection factories and queues into them. In
particular you can deploy the activemq rar (as we have done for the
activemq-rar module) which makes the connection factories and queues specified
there potentially available to jee apps in the same vm. (for instance if you
have a jee app client you need to specify an activemq deployment on the app
client to use activemq).
On the other hand, activemq also has a jndi context that you set up using a
properties file somewhere, and the contents of this jndi context are available
remotely. This is the one you are using in your sample, so you will not be
able to access the stuff you deployed in geronimo through it.
For admin objects (queues and topics) the distinction doesn't make a whole lot
of sense, but for connection factories it does. Geronimo connection factories
have a lot of pooling and transaction management code behind the scenes that
cannot be set up remotely by a jndi lookup.
> JNDI from ActiveMQ
> ------------------
>
> Key: GERONIMO-3149
> URL: https://issues.apache.org/jira/browse/GERONIMO-3149
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: ActiveMQ, naming
> Affects Versions: 2.0-M5
> Environment: linux/windows jdk-1.5.10_11
> Reporter: CrazyGoogle
> Assignee: David Jencks
> Priority: Critical
>
> JNDI lookup works somehow different as expected.
> Geromimo has 1 default Connection Factory and 2 Queues:
> DefaultActiveMQConnectionFactory
> but i get exception on lookup for this connection factory.
> Lookuping own created Connection Factories and Topic doesnt work also.
> Somehow lookuping for "ConnectionFactory" works. I can also lookup
> "TopicConnectionFactory". Seem to come from ActiveMQ ?
> here is also small simple java code to see the issue:
> http://files.myeburg.net/temp/TextJndi.java
> I dont see how to attach it here, so i put link on it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.