java - Can't Lookup Weblogic11 -


i using weblogic 11g, ejb3.0.

i trying simple 1 deployment in same machine. no success.

this code:

in 1 deployment target class:

 @callbyreference  @stateless (mappedname = "ejb/syncoperatorsbean")   @local ({syncoperatorsbeanlocal.class})   @remote ({syncoperatorsbeanremote.class})   @jndiname("ejb/syncoperatorsbean") //added     public class syncoperatorsbean implements syncoperatorsbeanlocal,syncoperatorsbeanremote    ... 

now in second deployment, how lookup in order reach first deployment:

    syncoperatorsbeanremote syncoperatorsbean = (syncoperatorsbeanremote) context                       .lookup("ejb/syncoperatorsbean#com.mirs.sbngenerate.beans.syncoperatorsbeanremote");              syncoperatorsbean.executesyncoperation(); 

that's exception:

  javax.naming.namenotfoundexception: while trying lookup 'ejb.syncoperatorsbean#com.mirs.sbngenerate.beans.syncoperatorsbeanremote' didn't find subcontext 'syncoperatorsbean#com'. resolved 'ejb'; remaining name 'syncoperatorsbean#com/mirs/sbngenerate/beans/syncoperatorsbeanremote' @ weblogic.jndi.internal.basicnamingnode.newnamenotfoundexception(basicnamingnode.java:1139) 

now can see bean syncoperatorsbean in console's jndi tree. still have above exception.

i can't use injection since calling class out of container (inside quartz job).

any idea?

take @ jndi tree managed server(s) ejb deployed , see if can find it. also, using url of admin server or managed server ejb deployed?


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -