|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.javaranch.common.EJBClient
An object the represents a client side access to a server.
- - - - - - - - - - - - - - - - -
Copyright (c) 1998-2004 Paul Wheaton
You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...
My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.
The original source can be found at JavaRanch
- - - - - - - - - - - - - - - - -
Constructor Summary | |
EJBClient()
Works for most needs |
|
EJBClient(java.lang.String initial,
java.lang.String url,
boolean narrow,
boolean formalLookup)
|
Method Summary | |
java.lang.Object |
getHome(java.lang.String homeName,
java.lang.Class homeClass)
One context is kept on hand to serve up homes for many bean requests. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EJBClient()
public EJBClient(java.lang.String initial, java.lang.String url, boolean narrow, boolean formalLookup)
initial
- used to create a new initial context under "java.naming.factory.initial". example: "allaire.ejipt.ContextFactory"url
- used to create a new initial context under "java.naming.provider.url". example: "ejipt://127.0.0.1:2323"narrow
- need to do narrowing?formalLookup
- prepend "java:comp/env/" on the home name?Method Detail |
public java.lang.Object getHome(java.lang.String homeName, java.lang.Class homeClass) throws javax.naming.NamingException
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |