0 Replies Latest reply on Feb 27, 2014 10:03 PM by nick.ni

    Remote client can't use context in different thread

    nick.ni

      In remote client application create context and get remote EJB,

      when use context and remote object in a new Thread get error

      (java.lang.IllegalStateException: No EJB receiver available for handling[appName:JBossTestDeploy,modulename:JbossTestEjb,distinctname:] combination for invocation context )。

       

      But context and remote object can used in main thread and

      I found if in  new Thread must recreate the context and remote object。

      but when create 40 Thread the error is too many channel.

      the context.close() is no help.

       

      how to use context is different thread ?