...this is what i tryed :-/ the lookup call throw no exceptions but the
queueConnectionFactory object is null (i got the output NULL for queueC...).
STRANGE :-(
if i try to create a new queueConnection like this:
queueConnection = queueConnectionFactory.createQueueConnection();
... of course -
Is this topic a JBoss JNDI bug ?
http://www.nabble.com/JNDI-with-ActiveMQ-embedded-in-JBoss-AS-td25151104.html
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4252037#4252037
Reply to the post :
This is my datasource for the activemq provider:
| ?xml version=1.0 encoding=UTF-8?
|
| !DOCTYPE connection-factories
| PUBLIC -//JBoss//DTD JBOSS JCA Config 1.5//EN
| http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd;
|
| connection-factories
|
|
... and as far as this site describes:
http://activemq.apache.org/jndi-support.html
ActiveMQ will work with any JNDI provider capable of storing Java objects.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4251760#4251760
Reply to the post :
and - if i uncomment:
//queueConnectionFactory = new
ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_BROKER_URL);
it works - but - without jndi support :-( and ActiveMQConnectionFactory is not
a JMS API call ! :-(
View the original post :
for alle people who dont know why my connectionfactory is available in the (not
common for jca ressource adapter) GLOBAL jndi namespace, you have to use:
use-java-contextfalse/use-java-context
... in your datasource file. ;-)
View the original post :
moonbird79 wrote :
| +- activemq (class: org.jnp.interfaces.NamingContext)
| | +- topic (class: org.jnp.interfaces.NamingContext)
| | | +- inbound (class: org.apache.activemq.command.ActiveMQTopic)
| | +- QueueConnectionFactory (class:
This is my code fragment, after the jndi lookup conectionfactory and the
destination are both null :-( :
| // initialize jndi connection (jboss specific configuration)
| Properties props = new Properties();
| props.setProperty(Context.INITIAL_CONTEXT_FACTORY,