[jboss-user] [JBoss Messaging] - Re: Remote JMS server

mskonda do-not-reply at jboss.com
Wed Sep 20 10:06:18 EDT 2006


I tested on 4.0.4, looks like the problem still exists!

When I scope the MDB jar and deployed to server, I get NCFE on JBossConnectionFactory!!


  | javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.JBossConnectionFactory (no security manager: RMI class loader disabled)]
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
  |         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  |         at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |         at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:182)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
  |   
  | 

Just to be on the safeside, here are my artifacts:

jboss-app.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | <jboss-app>
  |    <loader-repository>com.madhusudhan:loader=simple-mdb.ear
  |    	<loader-repository-config>java2ParentDelegaton=false</loader-repository-config>
  |    </loader-repository> 
  | </jboss-app>
  | 
Meta-inf

  | Manifest-Version: 1.0
  | Ant-Version: Apache Ant 1.6.5
  | Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
  | Java-Version: 1.5.0_06
  | Classpath: lib/jboss-aop.jar,lib/jboss-messaging.jar,lib/jboss-remoting.jar,lib/jboss-serialization.jar
  | 

Inside the ear, I have jboss-aop.jar, jboss-remoting.jar, jboss-serialization.jar, jboss-messaging and mdb.jar.

*ds.xml



  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <connection-factories>
  | 
  |   <!-- ==================================================================== -->
  |   <!-- JMS Stuff                                                            -->
  |   <!-- ==================================================================== -->
  | 
  |   <!-- The JMS provider loader -->
  |    <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |           name="jboss.mq:service=JMSProviderLoader,name=JMSProvider">
  |       <attribute name="ProviderName">DefaultJMSProvider</attribute>
  |       <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
  |       <attribute name="FactoryRef">/XAConnectionFactory</attribute>
  |       <attribute name="QueueFactoryRef">/XAConnectionFactory</attribute>
  |       <attribute name="TopicFactoryRef">/XAConnectionFactory</attribute>
  |       <attribute name="Properties">
  |                        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |                        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |                        java.naming.provider.url=adl-cmi01:19104
  |       </attribute>
  |    </mbean>
  | 
  | 
  |    <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
  |           name="jboss.messaging:service=ServerSessionPoolMBean,name=StdJMSPool">
  |       <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
  |       <attribute name="PoolName">StdJMSPool</attribute>
  |       <attribute name="PoolFactoryClass">org.jboss.jms.asf.StdServerSessionPoolFactory</attribute>
  |    </mbean>
  | 
  |    <!-- 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>
  | 

Just let me know if anyone want a deployable mdb jar. I can send by email if they wish.

Thanks
Madhu

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972943#3972943

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972943



More information about the jboss-user mailing list