org.plasma.common.naming
Class ServiceLocator
java.lang.Object
org.plasma.common.naming.ServiceLocator
public class ServiceLocator
- extends Object
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
getInstance
public static ServiceLocator getInstance()
throws NamingException
- Throws:
NamingException
getStub
public Object getStub(String ejbName,
Class ejbInterfaceClass)
throws NamingException
- Deprecated. use getStub(Class ejbInterfaceClass) or getStub(String ejbName) instead
- Parameters:
ejbName - ejbInterfaceClass -
- Returns:
-
- Throws:
NamingException
getStub
public Object getStub(Class ejbInterfaceClass)
throws NamingException
- Get an ejb stub found with the supplied interface class in the local JNDI tree
- Parameters:
ejbInterfaceClass -
- Returns:
- An ejb stub implementing the supplied interface class.
- Throws:
NamingException
getStub
public Object getStub(String ejbName)
throws NamingException
- Get an ejb stub found with the supplied name
- Parameters:
ejbName -
- Returns:
- An ejb stub found at the supplied name
- Throws:
NamingException
Copyright © 2014. All rights reserved.