Therion,

You need to use a different EJB name as well as a different JNDI name.

The partial deploymeent descriptor below is an example :-


  |     <session>
  |       <display-name>Audit Logging SSB</display-name>
  |       <ejb-name>AuditLoggingReceiver</ejb-name>
  |       <home>com.syntegra.nhs.nasp.tms.logging.LoggingReceiverHome</home>
  |       <remote>com.syntegra.nhs.nasp.tms.logging.LoggingReceiver</remote>
  |       <ejb-class>com.syntegra.nhs.nasp.tms.logging.LoggingReceiverBean</ejb-class>
  |       <session-type>Stateless</session-type>
  |       <transaction-type>Container</transaction-type>
  |       <env-entry>
  |         <description>Specify queue persistence</description>
  |         <env-entry-name>queuePersistent</env-entry-name>
  |         <env-entry-type>java.lang.Boolean</env-entry-type>
  |         <env-entry-value>true</env-entry-value>
  |       </env-entry>
  |       <resource-ref>
  |     <description>Link to Audit Connection Factory</description>
  |         <res-ref-name>jms/queueFactory</res-ref-name>
  |         <res-type>javax.jms.QueueConnectionFactory</res-type>
  |         <res-auth>Container</res-auth>
  |       </resource-ref>
  |       <resource-env-ref>
  |     <description>Link to Audit Queue</description>
  |         <resource-env-ref-name>jms/queueName</resource-env-ref-name>
  |         <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
  |       </resource-env-ref>
  |     </session>
  |     <!--  Session Bean for Diagnostic Logging -->
  |     <session>
  |       <display-name>Diagnostic Logging SSB</display-name>
  |       <ejb-name>DiagnosticLoggingReceiver</ejb-name>
  |       <home>com.syntegra.nhs.nasp.tms.logging.LoggingReceiverHome</home>
  |       <remote>com.syntegra.nhs.nasp.tms.logging.LoggingReceiver</remote>
  |       <ejb-class>com.syntegra.nhs.nasp.tms.logging.LoggingReceiverBean</ejb-class>
  |       <session-type>Stateless</session-type>
  |       <transaction-type>Container</transaction-type>
  |       <env-entry>
  |         <description>Specify queue persistence</description>
  |         <env-entry-name>queuePersistent</env-entry-name>
  |         <env-entry-type>java.lang.Boolean</env-entry-type>
  |         <env-entry-value>false</env-entry-value>
  |       </env-entry>
  |       <resource-ref>
  |     <description>Link to Diagnostic Connection Factory</description>
  |         <res-ref-name>jms/queueFactory</res-ref-name>
  |         <res-type>javax.jms.QueueConnectionFactory</res-type>
  |         <res-auth>Container</res-auth>
  |       </resource-ref>
  |       <resource-env-ref>
  |     <description>Link to Diagnostic Queue</description>
  |         <resource-env-ref-name>jms/queueName</resource-env-ref-name>
  |         <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
  |       </resource-env-ref>
  |     </session>
  | 

This is from ejb-jar.xml.  You also need to define jndi names in jboss.xml.
James


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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to