[jboss-user] [JBoss Messaging] - Connection Factory Configuration problem in JBoss Messaging

siddharth_2279 do-not-reply at jboss.com
Tue Jan 13 13:26:25 EST 2009

Hi All, 
I have my own connection factory entry in (jboss-5.0.0.GA\server\default\deploy\messaging\connection-factories-service.xml) 

<mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
  |       name="jboss.messaging.connectionfactory:service=MyExampleConnectionFactory"
  |       xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
  |       <constructor>
  |          <!-- You can specify the default Client ID to use for connections created using this factory --> 
  |          <arg type="java.lang.String" value="MyClientID"/>
  |       </constructor>
  |       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
  |       <!-- The transport to use - can be bisocket, sslbisocket or http -->
  |       <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
  |       <depends>jboss.messaging:service=PostOffice</depends>
  |       <!-- The connection factory will be bound in the following places in JNDI -->
  |       <attribute name="JNDIBindings">
  |          <bindings>
  |             <binding>/QueueConnectionFactory</binding>
  |          </bindings>
  |       </attribute>   
  |    </mbean>

When I run the Java code I get the following exception : 

JNDI lookup failed: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.jms.client.JBossConnectionFactory (no security manager: RMI class loader disabled)]

I even saw the solution to this as per given in the site : 


But even the solution 1 given here in the site namely :

1) Enable JNDI call by reference semantics.

To do that, modify the Naming (JNDI) service configuration and set its "CallByValue" attribute to "false".

The Naming configuration file is $JBOSS_HOME/server/default/deploy/naming-service.xml for an installer-generated JBoss configuration and the $JBOSS_HOME/server/conf/jboss-service.xml (the JNDI section, search for "jboss:service=Naming") for a raw installation.

is not working. 

Even this is giving a exception in the java program. 

Please Help me in solving this problem. 

I am using JBoss-5.0.0.GA app server. 

Thanks in advance. 

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

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

More information about the jboss-user mailing list