Hi
I am having an ejb deployed on a standalone jboss instance. And from another standalone instance i am trying to access that ejb.
My client code looks like :
InputStream inputStream = new FileInputStream(new File(propertyFileDir, REMOTE_EJB_CONNECTION_PROPERTY_FILE_NAME);
remoteEJBConfigurationProperties.load(inputStream);
remoteEJBConfigurationProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
final EJBClientConfiguration clientConfiguration = new PropertiesBasedEJBClientConfiguration(remoteEJBConfigurationProperties);
final ConfigBasedEJBClientContextSelector selector = new ConfigBasedEJBClientContextSelector(clientConfiguration);
String distinctName = remoteEJBConfigurationProperties.getProperty(REMOTE_IMPL_DISTINCT_NAME);
if (distinctName == null) {
distinctName = "";
}
StatelessEJBLocator<GameModuleService> statelessEJBLocator = new StatelessEJBLocator<GameModuleService>(GameModuleService.class, remoteEJBConfigurationProperties.getProperty(REMOTE_EAR_FILE),
remoteEJBConfigurationProperties.getProperty(REMOTE_JAR_FILE), remoteEJBConfigurationProperties.getProperty(REMOTE_IMPL_NAME), distinctName);
EJBClient.createProxy(statelessEJBLocator).ping(); //getting error while calling ping method of the remote ejb.
My remote client properties contains:
remote.connections=first
remote.connection.first.host=127.0.0.1
# Default port for standalone jboss is 4447 and for cluster it is 4447 + (offset defined in domain.xml, default value is 250)
remote.connection.first.port = 4547
#remote.connection.first.username=netent
remote.connection.first.username=admin
remote.connection.first.password=P@ssword1
remote.connection.first.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.ejb.ear.file.name=game-execution-service
remote.ejb.jar.file.name=gee-gateway-service
remote.ejb.implementation.class.name=GameModuleServiceClusteredRemoteEjb
remote.ejb.distinct.class.name=com.netent.gee.execution.service.GameModuleService
On server side i am getting :
14:05:38,840 ERROR [org.jboss.remoting.remote.connection] (Remoting "node1" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 369295616
On client side I am getting :
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:game-execution-service, moduleName:gee-gateway-service, distinctName:com.netent.gee.execution.service.GameModuleService] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@77661307