java.lang.Object | +--examples.ejb20.basic.beanManaged.ClientTst
This class demonstrates calling an entity EJBean.
This class also illustrates how to lookup an EJB home in the JNDI tree.
Constructor Summary | |
ClientTst(java.lang.String url)
|
Method Summary | |
void |
example()
|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
maintst(java.lang.String[] args)
Runs this example from the command line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientTst(java.lang.String url) throws javax.naming.NamingException
Method Detail |
public static void main(java.lang.String[] args) throws javax.naming.NamingException
public static java.lang.String maintst(java.lang.String[] args) throws javax.naming.NamingException
java examples.ejb20.basic.beanManaged.ClientTst "t3://localhost:7001"
The parameters are optional, but if any are supplied, they are interpreted in this order:
url
- URL such as "t3://localhost:7001" of Serverpublic void example() throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.ejb.RemoveException