[jboss-user] [Messaging, JMS & JBossMQ] - No resource manager found for jms/TCF

Nishank do-not-reply at jboss.com
Fri Apr 4 10:39:10 EDT 2008


Hi ,

I am porting an application from Weblogic to Jboss4.x. 
While configuring JMS with Entity beans I am getting this message on the Jboss Console:
No resource manager found for jms/TCF
Because of this Jboss is unable to look up for JNDi name and hence giving naming.context.namenotfound exception while running the application.
I am pasting my ejb-jar.xml and jboss.xml for reference.

ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar id="EJBJar_1119650856615">
    <display-name>BusinessDataManagement</display-name>
    <enterprise-beans>
        
            Business Data Management Service
            <ejb-name>BusinessDataManagementService</ejb-name>
            com.eidea.stub.ejb.component.BusinessDataManagementServiceHome
            com.eidea.stub.ejb.component.BusinessDataManagementService
            <ejb-class>com.eidea.svc.ejb.data.DataManagementServiceBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
            <ejb-local-ref id="DataServiceLocalRefID">
                Reference to the RelationshipServiceLocal Home
                <ejb-ref-name>RelationshipServiceLocal</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <local-home>com.eidea.stub.ejb.relationship.RelationshipServiceLocalHome</local-home>
                com.eidea.stub.ejb.relationship.RelationshipServiceLocal
                <ejb-link>RelationshipService</ejb-link>
            </ejb-local-ref>
            <security-role-ref>
                
                <role-name>PiiEOperator</role-name>
                <role-link>PiiEOperator</role-link>
            </security-role-ref>
            <security-identity>
                <use-caller-identity/>
            </security-identity>
            <resource-ref id="res_ref_1">
				<res-ref-name>jms/TCF</res-ref-name>
				<res-type>javax.jms.TopicConnectionFactory</res-type>
				<res-auth>Container</res-auth>
				<res-sharing-scope>Shareable</res-sharing-scope>
			</resource-ref>
			<resource-env-ref id="res_env_ref_1">
				<resource-env-ref-name>jms/ptopic</resource-env-ref-name>
				<resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>
			</resource-env-ref>
        
    </enterprise-beans>
    <assembly-descriptor>
        <security-role>
            Oms User
   		    <role-name>PiiEOperator</role-name>
        </security-role>
        <method-permission>
   		    <role-name>PiiEOperator</role-name>
            
                <ejb-name>BusinessDataManagementService</ejb-name>
                <method-name>*</method-name>
            
        </method-permission>
        <container-transaction>
            
                <ejb-name>BusinessDataManagementService</ejb-name>
                <method-name>*</method-name>
            
            <trans-attribute>Required</trans-attribute>
        </container-transaction>
    </assembly-descriptor>
</ejb-jar>

Jboss.xml

<?xml version="1.0" encoding="UTF-8"?>

	<enterprise-beans>
    <ejb-name>BusinessDataManagementService</ejb-name>
    <resource-ref>
		<res-ref-name>jdo</res-ref-name>
		<jndi-name>jdo</jndi-name>
		</resource-ref>
	<resource-ref>
				<res-ref-name>jms/TCF</res-ref-name>
				<jndi-name>TopicConnectionFactory</jndi-name>
		</resource-ref>
	<resource-ref>
				<res-env-ref-name>jms/ptopic</res-env-ref-name>
				<jndi-name>topic/DefaultChannel</jndi-name>
		</resource-ref>
    <jndi-name>BusinessDataManagementService</jndi-name>
  </enterprise-beans>
  <security-role-assignment>
	<role-name>PiiEOperator</role-name>
	<principal-name>Deployers</principal-name>
  </security-role-assignment>


Any help in this regard will be highly appreciated.

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

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



More information about the jboss-user mailing list