Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom UserRegistry access to EJBs???

Status
Not open for further replies.

gem03177

Programmer
Aug 1, 2002
2
DE
Hi,

I want to use a custom user registry that stores the userinformation into a database. For managing userinformation a simple SessionBean shoul be used.

Now my question:
Is it possible to access a SessionBean from the custom user registry??

I did some testing. It seems that I can access the InitialContext but if I try to setup the custom registry I get following exception:

org.omg.CORBA.TRANSACTION_ROLLEDBACK: com.ibm.websphere.csi.CSITransactionRolledbackException:
at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:194)
at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java(Compiled Code))
at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.sm.tasks.EJSRemoteStatefulGlobalSecuritySettings.apply(EJSRemoteStatefulGlobalSecuritySettings.java:64)
at com.ibm.ejs.sm.tasks._EJSRemoteStatefulGlobalSecuritySettings_Tie._invoke(_EJSRemoteStatefulGlobalSecuritySettings_Tie.java:81)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2362)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
:javax.transaction.TransactionRolledbackException: com.ibm.websphere.csi.CSITransactionRolledbackException:
at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:194)
at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java(Compiled Code))
at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.sm.tasks.EJSRemoteStatefulGlobalSecuritySettings.apply(EJSRemoteStatefulGlobalSecuritySettings.java:64)
at com.ibm.ejs.sm.tasks._EJSRemoteStatefulGlobalSecuritySettings_Tie._invoke(_EJSRemoteStatefulGlobalSecuritySettings_Tie.java:81)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2362)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
at com.ibm.ejs.container.util.ExceptionUtil.mapCSIException(ExceptionUtil.java:37)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.sm.tasks.EJSRemoteStatefulGlobalSecuritySettings.apply(EJSRemoteStatefulGlobalSecuritySettings.java:64)
at com.ibm.ejs.sm.tasks._EJSRemoteStatefulGlobalSecuritySettings_Tie._invoke(_EJSRemoteStatefulGlobalSecuritySettings_Tie.java:81)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2362)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

minor code: 0 completed: No
at com.ibm.ejs.csi.OrbUtilsImpl.mapException(OrbUtilsImpl.java:59)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.sm.tasks.EJSRemoteStatefulGlobalSecuritySettings.apply(EJSRemoteStatefulGlobalSecuritySettings.java:64)
at com.ibm.ejs.sm.tasks._EJSRemoteStatefulGlobalSecuritySettings_Tie._invoke(_EJSRemoteStatefulGlobalSecuritySettings_Tie.java:81)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2362)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)


Anyone tried something like this before???

Kind regards,
Gunnar Osterod
 
I believe you can use an EJB only of it is running in a different container.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top