jboss部署
17:07:34,323 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
d UserServiceImpl in deployment unit deployment "MessageSystem.jar" are as follo
ws:
java:global/MessageSystem/UserServiceImpl!MS.service.UserService
java:app/MessageSystem/UserServiceImpl!MS.service.UserService
java:module/UserServiceImpl!MS.service.UserService
java:jboss/exported/MessageSystem/UserServiceImpl!MS.service.UserService
java:global/MessageSystem/UserServiceImpl
java:app/MessageSystem/UserServiceImpl
java:module/UserServiceImpl
17:07:34,323 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
d MessageSystem in deployment unit deployment "MessageSystem.jar" are as follows
:
java:global/MessageSystem/MessageSystem!messagesystem.MessageSystemLocal
java:app/MessageSystem/MessageSystem!messagesystem.MessageSystemLocal
java:module/MessageSystem!messagesystem.MessageSystemLocal
java:global/MessageSystem/MessageSystem
java:app/MessageSystem/MessageSystem
java:module/MessageSystem
调用时console输出
INFO: EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@b035079, receiver=Remoting connection EJB receiver [connection=org.jboss.ejb.client.remoting.ConnectionPool$PooledConnection@6983d95,channel=jboss.ejb,nodename=dksl]} on channel Channel ID e248a42e (outbound) of Remoting connection 649a8a68 to /127.0.0.1:4447
java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:MessageSystem, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@26afa68a
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:735)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)
at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
at $Proxy0.login(Unknown Source)
at MS.service.HelloEJBClient.main(HelloEJBClient.java:24)
2014-9-28 17:06:57 org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleEnd
INFO: EJBCLIENT000016: Channel Channel ID e248a42e (outbound) of Remoting connection 649a8a68 to null can no longer process messages
我的jndi lookupname如下:
Hashtable<String, String> jndiProperties = new Hashtable<String, String>();
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
try{
InitialContext ctx = new InitialContext(jndiProperties);
UserService h = (UserService)ctx.lookup("ejb:/MessageSystem//UserServiceImpl!MS.service.UserService");
我也是同样的问题,怎么解决