|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEJBContext
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).
| 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 |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||