To connect on a remote host, and receive the queue posted, is need
@MessageDriven(name = "MDB_Queue", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/mdbQueue"), @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") }) @ResourceAdapter("jms-ra-principal.rar") // name of the resource
ra.xml example in jca-remote
<config-property-value>host=127.0.0.1;port=5446</config-property-value>
change to: 5445 is the default port
<config-property-value>host=127.0.0.1;port=5445</config-property-value>
this work fine
thanks Clebert to help me
I think that this can be the doubt of many users.. Then I posted the solution..
now my questions is:
It's possible to add ra.xml into my ear, without create jms-ra-principal?
I would like only put the modified ra.xml into my ear.. and the application work..
thanks.