File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
How to Call differ session beans...
Joined: Jan 12, 2012
Jan 12, 2012 09:26:19
I have a
that I want to call different session beans that utilize the same Interfaces (home and remote). Is this possible?
Object o = new
TestHome home = (TestHome)javax.rmi.PortableRemoteObject.narrow(o, TestHome.class);
I know that in the interface I put
public interface TestHome extends
public static final
COMP_NAME = "java:comp/env/ejb/TestSessionBean";
public static final String JNDI_NAME = "ejb/org/test/TestHome";
What if I want the Bean I call to be dynamic? like I pass the COMP_NAME...is this possible? Or am I going about this the wrong way?
Any help would be appreciated.
I agree. Here's the link:
subject: How to Call differ session beans...
could not find <ejb-local-ref>'s local interface
little help with start ejb testing
ejb create() Error java.lang. IllegalStateEx: Failed to find method for hash
error while running EJB from java client on JBOSS
ejb myclipse weblogic error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014