Christophe:

I'm able to deploy OJB in WebLogic Server. My approach is quite the same as
yours: created a weblogic startup class and bind the PBFactoryIF to JNDI
tree. Here are the issues I've experienced:
1) WebLogic server seems not like the "java:/" prefix added to the JNDI
name. It throws "javax.naming.OperationNotSupportedException: bind not
allowed in a ReadOnlyContext; remaining name '/ojb/PBAPI'" . The problem
went away if remove "java:/" from jndi name. In the session EJB, the code
will be like this:
pbf = ((PBFactoryIF) context.lookup("ojb.PBAPI")).getInstance();

2) In repository-database.xml, change the user id and password to :
        username="system"
      password="weblogic"
   I guess a new user ( resembles database user id and password) could be
created in weblogic security domain and assign it to a certain group may
also work. But haven't tried. 

Please let me know if this helps.

Cheers!
Lucy Zhao

-----Original Message-----
From: Christophe Lombart [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 7:44 PM
To: OJB Users List
Subject: Re: Deploy OJB in WebLogic Server


I'm trying to do this via a weblogic startup class. Via this startup 
class,  I'm putting the PB factory into a JNDI tree. This part is 
working but I got an exception whith the datasource and I don't 
understand why : SecurityPrivilegeActionException.
In a session bean, I lookup to the PB facotry and try to execute a 
query. At this time, I got this exception.

Christophe


Lucy Zhao wrote:

>Have anybody deployed OJB in a WebLogic Server? And wrote an MBean for
>WebLogic Server?
> 
>Thanks!
> 
>Lucy Zhao
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to