[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Changes in our JCA Adapter

timfox do-not-reply at jboss.com
Fri Apr 24 06:06:38 EDT 2009


"clebert.suconic at jboss.com" wrote : There are two ways of configuring our JCA Adapter:
  | 
  | On MDBs (Inbound), there are Activation properties on the MDBs:
  | 
  | 
  |   | @MessageDriven(name = "MessageMDBExample", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
  |   |                                                                @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/testQueue"),
  |   |                                                                @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
  |   |   
  |   | })
  |   | public class MDBExample implements MessageListener
  | 
  | 
  | All of this is just passed straight to the Resource-adapter. EJB3 doesn't know anything about this. So, if we have any complains about how this is configured it's going to be our fault.
  | 

So you're saying these values *override* any value specified in ra.xml?


anonymous wrote : 
  | As a way of allowing the user to connect the MDB to a remote server, I'm adding two activation properties there:
  | 
  | Example:
  | 
  | 
  |   | ...
  |   | @ActivationConfigProperty(propertyName = "TransportType", propertyValue = "org.jboss.messaging.integration.transports.netty.NettyConnector"),
  |   | @ActivationConfigProperty(propertyName = "TransportConfiguration", propertyValue = "jbm.remoting.netty.port=9945")
  |   | ...
  |   | 
  | 

I'm not sure I understand what these new properties do.. how do they map to the current properties in ra.xml ?





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

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



More information about the jboss-dev-forums mailing list