The JmsXA connection is a frontend to a session pool.
By default it is configured to login as guest/guest
in login-config.xml this overrides any parameters you
send as user/password.
If you wanted to use your own user/password you would
have to change the pooling to be ByApplication. Each
user would then get their own pool.
I wouldn't recommend doing a subscription using JmsXA
since the XASession will only be enlisted for as
long as the transaction lasts (default 5 minutes).
Why don't you use the in VM factory java:/ConnectionFactory?