org.openxava.ejbx
Interface IEJBContext

All Superinterfaces:
IConnectionProvider
All Known Subinterfaces:
IEJBContextInit
All Known Implementing Classes:
EJB11Context

public interface IEJBContext
extends IConnectionProvider

Find typical resources to implement a EJB.

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).

Author:
Javier Paniza

Method Summary
 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.
 
Methods inherited from interface org.openxava.util.IConnectionProvider
getConnection, getConnection, setDefaultDataSource, setPassword, setUser
 

Method Detail

getCallerPrincipal

java.security.Principal getCallerPrincipal()
As EJBContext.getCallerPrincipal in EJB 1.1.


getProperty

java.lang.String getProperty(java.lang.String name)
Property value from name.
Returns null if the property does not exist or it is not possible obtain it.
If the property exists but it does not have value then return empty string.


isCallerInRole

boolean isCallerInRole(java.lang.String roleName)
As EJBContext.isCallerInRole in EJB 1.1.