|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.opmath.test.j2ee.client.UniqueIdClient
Tests the UniqueIdGenerator EJB. See the file 'runclient.sh' (included with this distribution) for JVM configuration for this client app.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
| Field Summary | |
static String |
EJB_CODED_NAME
The name used to refer to the remote UniqueIdGenerator EJB. |
| Constructor Summary | |
UniqueIdClient(String name)
Constructs a new UniqueIdClient instance. |
|
| Method Summary | |
UniqueIdGenerator |
getUniqueIdGenerator()
Returns the UniqueIdGenerator EJB known to this UniqueIdClient. |
static void |
main(String[] args)
Runs the UniqueIdClient test. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final String EJB_CODED_NAME
The name used to refer to the remote UniqueIdGenerator EJB.
Set to "ejb/UniqueIdGenerator"
| Constructor Detail |
public UniqueIdClient(String name)
throws Exception
Constructs a new UniqueIdClient instance. If no unique ID generator matching the client's key exists, then one is created. Note that multiple UniqueIdClient instances can share the same UniqueIdGenerator EJB.
name - a String specifying the key for
the UniqueIdGenerator EJB.Exception - if problems were encountered in communicating
with the application server or UniqueIdGenerator EJB.| Method Detail |
public UniqueIdGenerator getUniqueIdGenerator()
Returns the UniqueIdGenerator EJB known to this UniqueIdClient. (Specifically, it returns the remote interface of the EJB.)
public static void main(String[] args)
Runs the UniqueIdClient test. The test can be run any number of times in the same environment (and should be run multiple times, inorder to functionally test the EJB).
Exception - a String[] of command line arguments.
Argument 0 is used as the key of the UniqueIdGenerator EJB.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||