Denys Myxin [https://community.jboss.org/people/myxin] created the discussion

"Re: Error deploying EJB on JBoss 6 using @Resource annotation and 
jndi.properties"

To view the discussion, visit: https://community.jboss.org/message/715862#715862

--------------------------------------------------------------
Hello.
Likely you need to open file hortnetq-jms.xml in 
/jboss/<profile>/deploy/hortnetq dir and lines:
<connection-factory name="QueueConnectionFactory" signature="queue">
        <xa>true</xa>
        <connectors>
           <connector-ref connector-name="in-vm"/>
        </connectors>
        <entries>
            <entry name="/QueueConnectionFactory"/>           
        </entries>
    </connection-factory>
<queue name="OrderBillingQueue">
      <entry name="/jms/OrderBillingQueue"/>
   </queue>
Then open file PlaceOrderBean and chahe Resource attributes by ones:
    @Resource(name="QueueConnectionFactory", 
mappedName="/QueueConnectionFactory") 
    private ConnectionFactory connectionFactory; 

    @Resource(name="/jms/OrderBillingQueue", mappedName = 
"/jms/OrderBillingQueue") 
    private Queue billingQueue;

Open file OrderBillingMDb and changes lines:
@MessageDriven(activationConfig = { 
        @ActivationConfigProperty(propertyName = "destination", propertyValue = 
"/jms/OrderBillingQueue"), 
        @ActivationConfigProperty(propertyName = "destinationType", 
propertyValue = "javax.jms.Queue") }) 
public class OrderBillingMDB implements MessageListener {
....
Please take attention jndi name queue and connection factory.
Best regards, Denys.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/715862#715862]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to