public interface IEJBContext extends IConnectionProvider
Isolate differences between EJB 1.0 and EJB 1.1(or 2.x), differences
between distincts EJB 1.0, and it smooths EJB API.
It better to use IEJBContext
versus direct access to
resource, thus we have more portability.
Object of this type can be obtained
Los objetos de este tipo se obtendrán by means of EJBContextFactory
.
The IConnectionProvider.getConnection()
method without arguments
obtain the connection of the property bean named DATA_SOURCE, that it have
to point at a valida datasource.
It's important follow this norm for sure the compatability of bean code
between differents ejb server versions.
Also it's possible to set the default connection using
IConnectionProvider.setDefaultDataSource(java.lang.String)
.
Modifier and Type | Method and Description |
---|---|
java.security.Principal |
getCallerPrincipal()
As
EJBContext.getCallerPrincipal in EJB 1.1. |
java.lang.String |
getProperty(java.lang.String name)
Property value from name.
|
boolean |
isCallerInRole(java.lang.String roleName)
As
EJBContext.isCallerInRole in EJB 1.1. |
getConnection, getConnection, setDefaultDataSource, setPassword, setUser
java.security.Principal getCallerPrincipal()
EJBContext.getCallerPrincipal
in EJB 1.1.java.lang.String getProperty(java.lang.String name)
null
if the property
does not exist or it is not possible obtain it.boolean isCallerInRole(java.lang.String roleName)
EJBContext.isCallerInRole
in EJB 1.1.