Hey
Ron Yust wrote:
> Does this mean my EJB session bean cannot load a JDBC driver like I do in
> RMI? The driver class may not be in the same jar as my EJB bean, but it
> will be in the classpath for the EJB server. And since there's no other
> jvm, I thought the EJB server's classloader would load the driver. What am
> I missing?
(assuming EJB1.1)
Let's be very specific here. No, your session should not load the JDBC
driver, since you should acquire it (through a DataSource) from JNDI.
That said, to really answer what I think you're asking (might be totally
off here, let me know):
You are correct that the JDBC driver will be loaded by the EJB servers
classloader, even though the bean is making the actual use of the class.
This is standard ClassLoader-behavior: the topmost classloader that can
access a class with a given name will do so.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".