Remote EJB client username/password and jboss-ejb-client.properties
jw Dec 7, 2011 5:33 AMHow has the file jboss-ejb-client.properties to be configured to take username/password entered on the client?
The example https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI
uses only anonymous.
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false remote.connections=default remote.connection.default.host=MYSERVER remote.connection.default.port=MYPORT remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
I've tried to set remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=true
but that gives the following exception
Caused by: javax.security.sasl.SaslException: No more authentication mechanisms to try at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:321) at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:200) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:179) at org.xnio.channels.TranslatingSuspendableChannel$2.handleEvent(TranslatingSuspendableChannel.java:100) at org.xnio.channels.TranslatingSuspendableChannel$2.handleEvent(TranslatingSuspendableChannel.java:98) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) at org.xnio.nio.NioHandle.run(NioHandle.java:90) at org.xnio.nio.WorkerThread.run(WorkerThread.java:184) at ...asynchronous invocation...(Unknown Source) at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:263) at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:246) at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:353) at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:337) at org.jboss.ejb.client.ConfigBasedEJBClientContextSelector.createConnection(ConfigBasedEJBClientContextSelector.java:274) ... 18 more
We're using JAAS with org.jboss.security.ClientLoginModule on the client (works fine with JBoss4)
Any ideas?