A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: How to Call differ session beans...
ejb create() Error java.lang. IllegalStateEx: Failed to find method for hash
error while running EJB from java client on JBOSS
could not find <ejb-local-ref>'s local interface
ejb myclipse weblogic error
little help with start ejb testing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014