-
1. Re: ClassLoader and application isolation
vickyk Oct 5, 2009 2:57 PM (in response to tonioc)You have not mentioned where is your -ds.xml file, is it also in the scoped EAR?
I think you are trying something new in JBoss5 which you have not done in earlier version of JBoss distribution, check this
http://www.jboss.org/community/wiki/IWantToDeployMyOwnJdbcDriverInAScopedClassloader -
2. Re: ClassLoader and application isolation
tonioc Oct 5, 2009 4:02 PM (in response to tonioc)Thanks VickyK,
Yes I forgot to tell you, my -ds.xml file is in default/deploy directory, just
as an XML not in my application ear.
The final solution will be to something related to the link you mentioned.
But for now, I'm just trying to verify isolation works :), jars are just
seen where they should be.
I'm using 4.2.3.GA, not 5, and what I can't understand is how it works,
as much as I understand it shouldn't, the DataSource is deployed at
Jboss-level, and this DataSource should not be able to see the
jdbc jar in the EAR file.
After taking a look at the JMX Console I've noticed that a couple of
jars related to DataBase are deployed automatically as part of the
jars deployed with my EAR, so might have to do with it.
So still trying to understand :(
Thanks a lot
tonio -
3. Re: ClassLoader and application isolation
vickyk Oct 9, 2009 12:58 AM (in response to tonioc)"toniocus" wrote:
Yes I forgot to tell you, my -ds.xml file is in default/deploy directory, just
as an XML not in my application ear.
If you have -ds.xml in deploy and the driver specific jars in seperate isolated deployments then things won't work."toniocus" wrote:
I'm using 4.2.3.GA, not 5, and what I can't understand is how it works,
as much as I understand it shouldn't, the DataSource is deployed at
Jboss-level, and this DataSource should not be able to see the
jdbc jar in the EAR file.
Yes the datasource will not be able to see the jars in scoped EAR, so the oracle specific jars would not be visible to the MBean's generated from datasource configurations.
Hence there is a failure.
If you are more interested in knowing Jboss CL working model for Jboss4.x then you must read this
http://www.jboss.org/community/wiki/JBossClassLoadingUseCases -
4. Re: ClassLoader and application isolation
tonioc Oct 9, 2009 8:37 AM (in response to tonioc)Thanks for your response.
Try to work on it a bit more, and find out why it is working.
Wonderful document the link you send me, while searching the
web for documents about this issue I wasn't able to find it.
thanks again
tonio