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
NamingException
public void close()
public AuctionMgmt getAuctionMgmt() throws NamingException
NamingException
public UserMgmt getUserMgmt() throws NamingException
NamingException
public Seller getSeller() throws NamingException
NamingException
public Buyer getBuyer() throws NamingException
NamingException
private Context getInitialContext(ServletContext context) throws NamingException
NamingException
private <T> T lookup(Class<T> lazz, Context jndi, String remoteJNDI) throws NamingException
NamingException
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.