I have not tried this myself but I understand that Weblogic 6.x has a
JMX MBean server.
The Castor-JBoss integration module is an MBean, it might be possible to
combine them in this way. You can get it from Jboss.org. If I was
compelled to use Weblogic I would definitely spend some time at least
trying to get this working because it is an excellent approach.
It works just dandy in JBoss 2.4.4.
Patrick
Markus Fritz wrote:
>Hi,
>
>i have tries to integrate castor in our weblogic 6.1 env and it
>seems to work but i wonder if it was correct that way.
>
>The castor docu is not very clear on J2EE integration; in weblogic
>docu i cannot find anything how to get castor registered in JNDI
>globally - i don't want to do it in each EJB DD.
>
>so i wrote that code (within our StartupTask):
>
> org.exolab.castor.jdo.JDO oJDO =
> new org.exolab.castor.jdo.JDO( DATABASE_NAME );
>
> .... setup JDO ...
>
> oJDO.setTransactionManager(
>"weblogic.transaction.TransactionManager" );
>
> javax.naming.InitialContext ictx = new
>javax.naming.InitialContext();
> ictx.rebind( MY_CASTOR_DATABASE_NAME, oJDO.getReference() );
>
>to access / get an Dtabase i use:
>
> org.exolab.castor.jdo.JDO jdo = (org.exolab.castor.jdo.JDO)
> getInitialContext().lookup( CASTOR_DATABASE_NAME );
> db = jdo.getDatabase();
>
>can anyone confirm that this way is OK ?
>
>thanks in advance,
>
> Markus Fritz
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev