|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcuba.ejb.AbstractEJBClientContext
public class AbstractEJBClientContext
Client interface to an EJB container used to get access to components and resources provided by that container.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface cuba.ContextI |
|---|
ContextI.Type |
| Field Summary |
|---|
| Fields inherited from interface cuba.ClientContextI |
|---|
CALLER_PROPERTY |
| Constructor Summary | |
|---|---|
AbstractEJBClientContext(AbstractEJBComponentFactory factory)
Create a new EJBClientContext from default properties. |
|
AbstractEJBClientContext(java.util.Properties props,
AbstractEJBComponentFactory factory)
Create a new EJBClientContext based on the passed properties. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getComponent(java.lang.String globalName)
Looks up a component by its global JNDI name. |
javax.sql.DataSource |
getDataSource(java.lang.String globalName)
Looks up a DataSource refered to by a global JNDI name. |
javax.transaction.UserTransaction |
getTransaction()
Provide access to a user transaction |
int |
getType()
Returns the type of context, to let the context holder perform operations depending on the environment it is working in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEJBClientContext(java.util.Properties props,
AbstractEJBComponentFactory factory)
InitialContext and include details
like server host, server port and communication protocol.
The actual content is propriatary for the application server
in use.
public AbstractEJBClientContext(AbstractEJBComponentFactory factory)
ComponentContextI.getClientContext()).
| Method Detail |
|---|
public int getType()
ContextI
getType in interface ContextI
public java.lang.Object getComponent(java.lang.String globalName)
throws ConstructionException,
ReferenceException
getComponent in interface ContextIglobalName - The global JNDI name of the component to look up
ConstructionException - if the container failed to provide
the required component
ReferenceException - if the provided symbolic name cannot
be resolved.
public javax.transaction.UserTransaction getTransaction()
throws javax.transaction.SystemException
ContextI
getTransaction in interface ContextIjavax.transaction.SystemException
public javax.sql.DataSource getDataSource(java.lang.String globalName)
throws ConstructionException,
ReferenceException
getDataSource in interface ContextIglobalName - The global JNDI name of the SQL source to look up
ConstructionException - if the container failed to provide
the required SQL database
ReferenceException - if the provided symbolic name cannot
be resolved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||