public class JNDIHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUCTION_MGMT_REMOTE_JNDI |
static String |
BUYER_REMOTE_JNDI |
private Context |
jndi |
private static org.apache.commons.logging.Log |
log |
static String |
SELLER_REMOTE_JNDI |
static String |
USER_MGMT_REMOTE_JNDI |
| Constructor and Description |
|---|
JNDIHelper(ServletContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AuctionMgmt |
getAuctionMgmt() |
Buyer |
getBuyer() |
private Context |
getInitialContext(ServletContext context) |
Seller |
getSeller() |
UserMgmt |
getUserMgmt() |
private <T> T |
lookup(Class<T> lazz,
Context jndi,
String remoteJNDI) |
private static final org.apache.commons.logging.Log log
public static final String AUCTION_MGMT_REMOTE_JNDI
public static final String USER_MGMT_REMOTE_JNDI
public static final String SELLER_REMOTE_JNDI
public static final String BUYER_REMOTE_JNDI
private Context jndi
public JNDIHelper(ServletContext context) throws NamingException
NamingExceptionpublic void close()
public AuctionMgmt getAuctionMgmt() throws NamingException
NamingExceptionpublic UserMgmt getUserMgmt() throws NamingException
NamingExceptionpublic Seller getSeller() throws NamingException
NamingExceptionpublic Buyer getBuyer() throws NamingException
NamingExceptionprivate Context getInitialContext(ServletContext context) throws NamingException
NamingExceptionprivate <T> T lookup(Class<T> lazz, Context jndi, String remoteJNDI) throws NamingException
NamingExceptionCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.