I'm trying to map the SpyderMQ connection factory onto a session bean
resource ref using the ejb-jar.xml resource-ref element and the jboss.xml
resource-ref & resource-manager elements. The container is saying that it
cannot find a resource manager for the 'jms/QueueConnectionFactory' resource.
Below is the console output and the ejb-jar.xml & jboss.xml descriptors I'm
using. What am I doing wrong in the descriptors?

+++ jboss console output:
[Container factory] Deploying TimeBeanViaJMS
[Container factory] No resource manager found for jms/QueueConnectionFactory
[Bean Cache] Cache policy scheduler started
[Container factory] Deployed application:
file:/D:/usr/local/src/cvsroot/jBoss/jboss/dist/tmp/deploy/Default/timebean_jms.jar/ejb1001.jar
[J2EE Deployer Default] J2EE application: 
file:/D:/usr/local/src/cvsroot/jBoss/jboss/dist/deploy/timebean_jms.jar is deployed.

+++ ejb-jar.xml:
<?xml version="1.0" ?>

<ejb-jar>
 <description>A test of JMS access from an EJB</description>
 <display-name>HelloWorld</display-name>
 <enterprise-beans>
  <session>
   <display-name>TimeBean With JMS</display-name>
   <ejb-name>TimeBeanViaJMS</ejb-name>
   <home>com.dscape.test.standards.jms.fromejb.interfaces.TimeHome</home>
   <remote>com.dscape.test.standards.jms.fromejb.interfaces.Time</remote>
   <ejb-class>com.dscape.test.standards.jms.fromejb.TimeBean</ejb-class>
   <session-type>Stateful</session-type>
   <transaction-type>Bean</transaction-type>

   <!-- The mapping from res-ref-name to the deployed jndi name
    must be done in an appserver specific way -->
   <resource-ref>
    <description>JMS Queue Factory</description>
    <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Container</res-auth>
   </resource-ref>
  </session>
 </enterprise-beans>
</ejb-jar>

+++ jboss.xml:
<?xml version="1.0" ?>

<jboss>
 <session>
  <ejb-name>TimeBeanViaJMS</ejb-name>
  <resource-ref>
   <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
   <resource-name>QueueConnectionFactory</resource-name>
  </resource-ref>
 </session>

 <resource-managers>
  <resource-manager>
   <res-name>QueueConnectionFactory</res-name>
   <res-jndi-name>QueueConnectionFactory</res-jndi-name>
  </resource-manager>
 </resource-managers>
</jboss>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to