Charles,

Thanks for the prompt reply. I will try that. 

Regards,
-Vamsi

--- Charles Anthony <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> In this case, you would have to modify your jndi-datasource to use the
> P6SpyDriver...
> 
> Cheers,
> 
> Charles.
> 
> -----Original Message-----
> From: Vamsi Atluri [mailto:[EMAIL PROTECTED]
> Sent: 19 August 2005 14:22
> To: OJB Users List
> Subject: Re: optimistic locking problems (P6Spy question)
> 
> 
> Hello all,
> 
> Sorry to hijack the thread into a question about P6Spy. The P6Spy
> document
> that Armin pointed out here says that we have to modify the "driver"
> parameter in the "jdbc-connection-descriptor" of the repository.xml
> file.
> However, I have a managed environment (WSAD/WAS) wherein I do not
> specify
> the driver in the repository.xml file. More specifically, my connection
> descriptor is like this:
> 
> <jdbc-connection-descriptor 
>               jcd-alias="OJBDb" 
>               default-connection="true" 
>               platform="Db2" 
>               jdbc-level="1.0" 
>               jndi-datasource-name="jdbc/ojbDataSource"               
>               username="*****" 
>               password="*****" 
>               batch-mode="false" 
>               useAutoCommit="1" 
>               ignoreAutoCommitExceptions="false">
>               <sequence-manager
>
className="org.apache.ojb.broker.util.sequence.SequenceManagerNativeImpl">
>                   <attribute attribute-name="grabSize"
> attribute-value="1"></attribute>
>               </sequence-manager>
>       </jdbc-connection-descriptor>
> 
> Since I am using jndi-datasource-name, I didn't have to specify the
> driver. How do I use P6Spy in such cases? Do I just add an additional
> parameter for driver? Any help is appreciated. Thank you.
> 
> Regards,
> -Vamsi
> 
> 
> > Did you
> > 
> > > check the generated sql statements, e.g. via P6Spy (jar is shipped
> > with 
> > > OJB)?
> > > http://db.apache.org/ojb/docu/faq.html#traceProfileSQL
> > > 
> > > 
> > > regards,
> > > Armin
> > > 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ___________________________________________________________
> HPD Software Ltd. - Helping Business Finance Business
> Email terms and conditions: www.hpdsoftware.com/disclaimer 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to