You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jeppe <Je...@smarttrust.com> on 2006/06/12 00:53:42 UTC

JNDI Remote usage of Connection Factories..

I've tried to make heads-or-tails of Activemq deployed inside JBoss 4.0.4 and
attempting to retrieve a TopicConnectionFactory and QueueConnectionFactory.

I've run with a slightly modifiedversion of the "-ds.xml" file from the
Wiki.

Anyways the basic problem is that a activemq/TopicConnectionFactory and
activemq/QueueConnectionFactory entries appears registered in the remote
JNDI-tree. But looking them up will just yield a "null"-object whereas
looking up the connection factory for JBossMQ using the same mechanism

The previous entry
"http://www.nabble.com/remote-jndi-t1367903.html#a3668296" also refferered
to the behavior I'm seeing. That thread was not satistfactory concluded and
wondered if someone has solved this or experienced this problem since that
post.

Here is the "activemq-ds.xml" file used:

<?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>

   <tx-connection-factory>
      <jndi-name>activemq/QueueConnectionFactory</jndi-name>
      <xa-transaction/>
	<use-java-context>false</use-java-context>
      <track-connection-by-tx/> <!-- Thanks to Adrian Brock for pointing
this one out! -->
      <rar-name>activemq-ra-4.0.rar</rar-name>
     
<connection-definition>javax.jms.QueueConnectionFactory</connection-definition>

     
<security-domain-and-application>JmsXARealm</security-domain-and-application>
   </tx-connection-factory>

   <tx-connection-factory>
      <jndi-name>activemq/TopicConnectionFactory</jndi-name>
      <xa-transaction/>
	<use-java-context>false</use-java-context>
      <track-connection-by-tx/> <!-- Thanks to Adrian Brock for pointing
this one out too! -->
      <rar-name>activemq-ra-4.0.rar</rar-name>
     
<connection-definition>javax.jms.TopicConnectionFactory</connection-definition>
     
<security-domain-and-application>JmsXARealm</security-domain-and-application>
   </tx-connection-factory>

   <mbean code="org.jboss.resource.deployment.AdminObject"
name="activemq.queue:name=outboundQueue">
      <attribute name="JNDIName">activemq/queue/outbound</attribute>
      <depends
optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-ra-4.0.rar'</depends>
      <attribute name="Type">javax.jms.Queue</attribute>
      <attribute name="Properties">
            PhysicalName=queue.outbound
      </attribute>
   </mbean>

</connection-factories>
--
View this message in context: http://www.nabble.com/JNDI-Remote-usage-of-Connection-Factories..-t1771345.html#a4821299
Sent from the ActiveMQ - User forum at Nabble.com.