public class JBossServiceLocator extends JndiServiceLocator
| Constructor and Description |
|---|
JBossServiceLocator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultSuffix() |
void |
initialize(String host,
int port,
Properties properties)
Initializes and creates the JNDI initial context.
|
Object |
lookup(ServiceDescriptor sd)
Lookup the service described by the given service descriptor.
|
dispose, getContext, lookuppublic void initialize(String host, int port, Properties properties) throws Exception
JndiServiceLocatorinitialize in interface ServiceLocatorinitialize in class JndiServiceLocatorhost - the host where the lookup will be done. The host is optional
and may be null if the services are looked up in the current
JVMport - the port of the host to be used to lookup.properties - the properties are implementation dependent Properties
may be null if no properties are required. The port is
meaningful only if the host was specifiedExceptionpublic Object lookup(ServiceDescriptor sd) throws Exception
ServiceLocatorlookup in interface ServiceLocatorlookup in class JndiServiceLocatorsd - the service descriptorException - if any error occurspublic static String getDefaultSuffix()
Copyright © 2012 Nuxeo SA. All Rights Reserved.