[jboss-user] [Beginner's Corner] - Re: Exception deploying MDB !

Gurvinderpal Narula do-not-reply at jboss.com
Tue Nov 23 18:46:14 EST 2010


Gurvinderpal Narula [http://community.jboss.org/people/groovenarula] created the discussion

"Re: Exception deploying MDB !"

To view the discussion, visit: http://community.jboss.org/message/572602#572602

--------------------------------------------------------------
The MDB that's packaged in the jar is implemented by ForwardResponse.java  as follows :** 
*
*
*package com.lazboy.services;* 
** 
 *import java.io.FileInputStream;
*
*import java.io.IOException;
*
*.
*
*.
*
*.
*
*.
*
*.
*
*import sbxprrq.*;
*
*import pricerequest.ProgramInterface;
*
*import pricerequest.ProgramInterface.Dfhcommarea.InputOpts;* 
** 
*
*
*@MessageDriven(*
*
*
*                activationConfig = {*
*
*
*                                @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),*
*
*
*                                @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/RetailPriceRequestQueue")*
*
*
*        })* 
** 
 *public class ForwardResponse implements MessageListener {* 
** 
*   @Resource(mappedName="java:/ConnectionFactory")
*
*  private javax.jms.ConnectionFactory qcf;* 
** 
*   .
*
*  .
*
*  .
*
*  @PostConstruct
*
*  public void init()
*
*  {
*
*    
*
*  }* 
** 
*    /**
*
*     * @see MessageListener#onMessage(Message)
*
*     */
*
*  public void onMessage(Message message) {* 
** 
The MDB consumes messages from 'RetailPriceRequestQueue' that's defined as follows in messaging/destinations-service.xml as follows :
** 
*  <mbean code="org.jboss.jms.server.destination.QueueService"
*
*      name="jboss.messaging.destination:service=Queue,name=RetailPriceRequestQueue"
*
*      xmbean-dd="xmdesc/Queue-xmbean.xml">
*
*      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
*
*      <depends>jboss.messaging:service=PostOffice</depends>
*
*   </mbean>* 

I've verified that the queue above does appear as an active queue in jmx console when the server starts.
*
*
--------------------------------------------------------------

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

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101123/d5d82a45/attachment-0001.html 


More information about the jboss-user mailing list