Hello,
I was using SonicMQ as a JMS Provider with my web-app,mdbs deployed in the
JBoss 4.03Sp1 instance. I was able to access the ConnectionFactory using the
JNDI Name "ConnectionFactory". But now when I switched out the JMS provider
with JBossMQ JMS Provider, I get a "ConnectionFactory not bound" exception when
I do a lookup on the JNDI tree. Also, my other goal was to be able to simply
switch the JMS Providers without having to update the ConnectionFactory name
lookups. This should be possible if I map the JNDI names right... I believe.
These are following updates I have made on the JBoss instance with a web-app
deployed. "enterprise:1099" is the JBoss instance that is supposed to be the
JBoss Instance with JBossMQ.
jboss-ds.xml:
<connection-factories>
<!-- ==================================================================== -->
<!-- JMS Stuff -->
<!-- ==================================================================== -->
<!-- The JMS provider loader -->
DefaultJMSProvider
org.jboss.jms.jndi.JNDIProviderAdapter
<!-- The queue connection factory -->
XAConnectionFactory
<!-- The topic factory -->
XAConnectionFactory
<!-- Uncomment to use HAJNDI to access JMS -->
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=enterprise:1099
<!-- The server session pool for Message Driven Beans -->
<depends optional-attribute-name="XidFactory">jboss:service=XidFactory
StdJMSPool
org.jboss.jms.asf.StdServerSessionPoolFactory
<!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
<tx-connection-factory>
<jndi-name>JmsXA</jndi-name>
<xa-transaction/>
<rar-name>jms-ra.rar</rar-name>
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
<config-property name="SessionDefaultType"
type="java.lang.String">javax.jms.Topic</config-property>
<config-property name="JmsProviderAdapterJNDI"
type="java.lang.String">java:/DefaultJMSProvider</config-property>
<max-pool-size>20</max-pool-size>
<security-domain-and-application>JmsXARealm</security-domain-and-application>
</tx-connection-factory>
</connection-factories>
My understanding was that, I only require \jms\jms-ds.xml and the
\jms\jms-ra.rar files and everything else related to the JMS on the web-app
instance can be deleted. And I dont have any additional settings or updates on
enterprise with JBossMQ instance
Looks like I am sure I am missing some additional settings. Am I missing
something here?
thanx
-r
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938552#3938552
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938552
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user