and to add to this reply...
I don't think u will be able to pass the connection object across the
network, as it is not a serializable object.
Rgds.,
komal.
Ashwani Kalra
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
M> cc:
Sent by: A Subject: Re: Can I pass Connection
object as a parameter to a Session
mailing list for Bean .
Enterprise
JavaBeans
development
<EJB-INTEREST@JAV
A.SUN.COM>
09/03/00 08:01 PM
Please respond to
A mailing list
for Enterprise
JavaBeans
development
You can always create the connection object as an instance variable. create
it in ejbcreate method .
Regards
Ashwani Kalra
E-Commerce Group
NIIT Ltd. India
> ----------
> From: Balachandher S[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for Enterprise JavaBeans development
> Sent: Sunday, September 03, 2000 11:09 AM
> To: [EMAIL PROTECTED]
> Subject: Can I pass Connection object as a parameter to a Session
> Bean.
>
> Dear all,
>
> Can I pass java.sql.Connection as a parameter to a session bean. I am
> trying with Oracle thin Driver. I am creating the java.sql.Connection
> object ( using Oracle Thin Driver ) after a login screen. If I am
passing
> the same as a parameter to the session object, I am getting
> "ClassCastException".
>
> Any help in this regard will be useful to me. Is there any alternate
> mechanism by which I can reuse the same Connection object created during
> the
> Login.
>
> Thanks in advance.
>
> With regards
> sbchand
> _________________________________
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> $B????????????????????????????????? (B
> Srinivasan Balachandher
> Software Engineer
>
> MEDICOM Solutions (P) Ltd.
> 73-D, Electronics City
> Hosur Road
> Bangalore - 561 229
> INDIA
>
> Tel : 91-80-8520230
> Fax : 91-80-8520231
> URL : http://www.medicomsoft.com
> _________________________________
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> $B????????????????????????????????? (B
>
>
==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
>
Visit http://www.NetVarsity.com for online learning
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
- Re: Can I pass Connection object as a parameter to a Se... Ashwani Kalra
- Re: Can I pass Connection object as a parameter to... Mangtani Komal
- Re: Can I pass Connection object as a parameter to... Gene Chuang
- Re: Can I pass Connection object as a parameter to... Juan Pablo Lorandi
- Re: Can I pass Connection object as a paramete... William Louth
- Re: Can I pass Connection object as a para... Cedric Beust
- Re: Can I pass Connection object as a ... William Louth
- Re: Can I pass Connection object as a para... Dave Wolf
- Re: Can I pass Connection object as a parameter to... Gene Chuang
- Re: Can I pass Connection object as a parameter to... Juan Pablo Lorandi
