"clebert.suconic(a)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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...