Hi,
here is a short preview of my method:
@Override
public RoleInformation getRole(String roleId, String sessionId) throws
OpenflowException {
Session session = sessionBean.isSessionValid(sessionId);
if(session!=null) {
RoleInformation roleInformation = (RoleInformation)
entityManager.find(RoleInformation.class, roleId);
if(roleInformation==null)
throw new OpenflowException("Role does not
exists >>> "+roleId);
return roleInformation;
}
return null;
}
The entityManager will be injected by
@PersistenceContext(unitName="myUnit").
--
View this message in context:
http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655315.html
Sent from the OpenEJB User mailing list archive at Nabble.com.