I think the problem comes because .rar is a file extension also used for a proprietary compressed format http://en.wikipedia.org/wiki/RAR as well as mandated in JEE for the file extension of a resource archive, which is not in the RAR format.
If you have associated .rar with the proprietary format in Windows (say) then you might have problems when you double click on it.
Right so I have finally figured out where I was going wrong, the mdb destination activation configuration property must reference the queue name not the entry name listed in the hornetq-jms.xml as suggested in the jca-remote example, see below:
@MessageDriven(name = "MDB_Queue",
activationConfig =
{
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
//not queue/mdbQueue as in the example just mdbQueue
@ActivationConfigProperty(propertyName = "destination", propertyValue = "mdbQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
})
@ResourceAdapter("hornetq-ra.rar")
public class MDBQueue implements MessageListener
{
public void onMessage(Message message)
{}
}
From the hornetq-jms.xml:
<queue name="mdbQueue"> <-- this name
<entry name="/queue/mdbQueue"/> <-- not this name
</queue>
Devs for the sake of peoples sanity please correct the example and add some more documentation to the remote jca section.
Thanks,
Matt