|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.util.ServiceLocator
public class ServiceLocator
This class is an implementation of the Service Locator pattern. It is used to look up resources such as EJBHome's, JMS service components, etc. This implementation uses the "singleton" strategy and also the "caching" strategy. This class is intended to be used on the web tier and not on the EJB tier.
Method Summary | |
---|---|
javax.sql.DataSource |
getDataSource()
|
static ServiceLocator |
getInstance()
|
javax.ejb.EJBLocalHome |
getLocalHome(java.lang.String jndiHomeName)
Retrieve a LocalHome object for an EJB. |
org.apache.ojb.broker.core.PersistenceBrokerFactoryIF |
getPersistenceBrokerFactory()
Looks up the PBF implementation. |
javax.jms.Queue |
getQueue(java.lang.String queueName)
|
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory()
|
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(java.lang.String jndiName)
|
javax.ejb.EJBHome |
getRemoteHome(java.lang.String jndiHomeName,
java.lang.Class className)
Retrieve the EJBHome object given an EJB Home and its corresponding JNDI name. |
javax.sql.DataSource |
getSecurityDataSource()
|
javax.jms.Topic |
getTopic(java.lang.String topicName)
|
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory()
|
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory(java.lang.String jdniName)
Obtain the TopicConnectionFactory for sending/receiving JMS messages |
javax.transaction.UserTransaction |
getUserTransaction()
Looks up UserTransaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ServiceLocator getInstance()
public javax.ejb.EJBLocalHome getLocalHome(java.lang.String jndiHomeName) throws ServiceLookupException
jndiHomeName
-
ServiceLookupException
public javax.ejb.EJBHome getRemoteHome(java.lang.String jndiHomeName, java.lang.Class className) throws ServiceLookupException
-
ServiceLookupException
public javax.jms.QueueConnectionFactory getQueueConnectionFactory() throws ServiceLookupException
ServiceLookupException
public javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String jndiName) throws ServiceLookupException
ServiceLookupException
public javax.jms.Queue getQueue(java.lang.String queueName) throws ServiceLookupException
ServiceLookupException
public javax.jms.TopicConnectionFactory getTopicConnectionFactory() throws ServiceLookupException
ServiceLookupException
public javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String jdniName) throws ServiceLookupException
ServiceLookupException
public javax.jms.Topic getTopic(java.lang.String topicName) throws ServiceLookupException
ServiceLookupException
public javax.transaction.UserTransaction getUserTransaction() throws ServiceLookupException
ServiceLookupException
public javax.sql.DataSource getSecurityDataSource() throws ServiceLookupException
ServiceLookupException
public org.apache.ojb.broker.core.PersistenceBrokerFactoryIF getPersistenceBrokerFactory()
public javax.sql.DataSource getDataSource() throws ServiceLookupException
ServiceLookupException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |