If your EJB's are running in the same application server, you should not have any problem. From the first EJB, call the second with:
Context initial = new InitialContext();
Object objref = initial.lookup("otherEJB");
...
, and when creating the first EJB you have to specify that this EJB call the other EJB in the field "EJB References" (enter the Coded name, JNDI name, home and remote interfaces).
Hope this helps.
Also, not to mention that u have to put ur jar files(All ejb jar files) in weblogicInstallDir/config/mydomain/applications directory. If ur ejb's are in same server, then keep both the jar files in this directory and u can call "otherEJB" from oneEJB as
(Taken from other help)
Context initial = new InitialContext();
Object objref = initial.lookup("otherEJB");
...
, and when creating the first EJB you have to specify that this EJB call the other EJB in the field "EJB References" (enter the Coded name, JNDI name,
home and remote interfaces).
Remember, u have to keep ur home and remote class files under /weblogicInstallDir/config/Mydomain/ClientClasses dir. U can manually create "ClientClasses" or "ServerClasses" directory under /mydomain directory and place ur classfiles with proper package structure. Mention this "ClientClasses or ServerClasses(what ever u are using) in the classpath.
Hope this helps.
Elangovan