JBoss Community

JBoss 7 and Ejb remote call with security

new comment by Darran Lofthouse View all comments on this document

Do you see an option to convert this to a discussion?  Would probably make more sense as a discussion than an article.

 

Anyway you seem to be having the local authentication mechanism kick in for these calls so you need to disable the mechanism on the client side, for JNDI this can be achieved with the following option: -

 

jndiProperties.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS", "JBOSS-LOCAL-USER");

For the EJB connection you will need a line simiar to: -

 

remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER

(But adjust the connection name to match the name you are using.)