[JBoss Messaging] - Porting WLS8.1 to JBoss5 - JNDI lookup for XA factory return
by lwalter
G'day,
This is probably a newbie question, but I couldn't find the answer in a few days of Googling. I'm trying to port a JMS-using app from Weblogic 8.1 to JBoss 5.0.
I've configured a transactional JMS factory like this in jms-ds.xml:
<tx-connection-factory>
| <jndi-name>applications/ig/jms/INVOICE_GENERATOR_CF</jndi-name>
| <use-java-context>false</use-java-context>
| <xa-transaction/>
| <rar-name>jms-ra.rar</rar-name>
| ..etc..
|
This is then set up in connection-factories.xml:
<mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=ConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <attribute name="JNDIBindings">
| <bindings>
| <binding>/ConnectionFactory</binding>
| <binding>/XAConnectionFactory</binding>
| <binding>java:/ConnectionFactory</binding>
| <binding>java:/XAConnectionFactory</binding>
| <binding>applications/ig/jms/INVOICE_GENERATOR_CF</binding>
| ..etc..
|
The JNDI View mbean then shows me this bound into the global namespace:
+- applications (class: org.jnp.interfaces.NamingContext)
| | +- ig (class: org.jnp.interfaces.NamingContext)
| | | +- jms (class: org.jnp.interfaces.NamingContext)
| | | | +- INVOICE_GENERATOR_CF (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
|
So when the code does this:
| Object temp = context.lookup(jndiFactoryName);
| if (temp instanceof XAQueueConnectionFactory) {
| factory = (XAQueueConnectionFactory) temp;
| }
| else {
| log.error("getXAQueueConnectionFactory: Could not cast the object " + temp.toString() + "to a XAQueueConnectionFactory class.");
| }
|
Sure enough, it logs this:
2009-04-28 16:01:27,226 ERROR [au.com.soul.common.utils.servicelocator.ServiceLocator] getXAQueueConnectionFactory: Could not cast the object org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl@665e81to a XAQueueConnectionFactory class.
|
Could someone please point me in the right direction?
thanks in advance,
Len
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227103#4227103
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227103
17 years
[JBossWS] - No jboss.xml equivalent for @EndpointConfig in JBoss 4.2.3
by hoogenbj
Hi Everyone,
In addition to expanding the JBoss installed base of our product, we want to expand into the SAP NetWeaver 7.1 sphere of influence. Part of the porting exercise involves finding equivalent jboss.xml entries for proprietary JBoss annotations.
The only annotation I have been unable to find an equivalent for is @EndPointConfig used in some of our EJB3 SLSB-based web services.
Googling located some hints in the JBossWS JIRA of this having been raised before, but I have been unable to find specifics. Besides, the JIRA site is horribly slow. I also found some reference to config-name in the jboss_4_2.dtd in the docs/dtd subfolder for my JBoss installation, but this appears to be incomplete. After using the hints I found in the dtd, I deployed my application with a config-name element inside the webservices element of jboss.xml. This resulted in deployment errors. Which I expected since the dtd appears to be incomplete.
Can anyone confirm if this has been raised before and if so, the outcome thereof?
Having a single codebase for all the platforms our product will run on has obvious advantages...
I upgraded my JBoss4.2.3 to the latest JBossWS native version - 3.1.1.
Regards,
Johan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227099#4227099
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227099
17 years