-
1. Re: Find classes on EAR/lib through a MBean within a SAR
suikast42 Dec 8, 2011 3:38 PM (in response to jaabax)Hi,
I had a similiar problem with Message.getObject method of a MDB. I register this Issue during a migration fron as 5.1.0.GA from 6.1.0.Final. The Problem was the isolated classcloading. I set this to false. I assume you have the same problem.
Look here https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 in section EAR Class Loading.
I hope that helps
-
2. Re: Find classes on EAR/lib through a MBean within a SAR
jaabax Dec 8, 2011 3:48 PM (in response to suikast42)Hi Sueleyman.
Yes, you're right.
But look what the docs says:
{quote}By default this is set to false, which allows the sub-deployments to see classes belonging to other sub-deployments within the .ear.{quote}
As the docs says, I'm able to find classes inside my-app-entity-beans.jar by default (or should be).
I think that the problem is how to obtain my-app-entity-beans.jar class loader to find the desired classes.
-
3. Re: Find classes on EAR/lib through a MBean within a SAR
suikast42 Dec 9, 2011 2:49 AM (in response to jaabax)Another question, Why do you have your my-app-entity-beans.jar under lib ?
-
4. Re: Find classes on EAR/lib through a MBean within a SAR
jaabax Dec 9, 2011 5:11 AM (in response to suikast42)I thought (I think hehe) that lib is the correct place to put my entity beans... Am I wrong?
-
5. Re: Find classes on EAR/lib through a MBean within a SAR
suikast42 Dec 9, 2011 5:19 AM (in response to jaabax)And I thought and think that's the place for libraries that have nothing to do with your JEE environment. Like utility classes or third party libs like apachache.commons.lang for example. So you can change your packaging and try again
-
6. Re: Find classes on EAR/lib through a MBean within a SAR
jaabax Dec 9, 2011 5:26 AM (in response to suikast42)So, my entity beans should be a module on JBoss 7?
Where should I put my entity beans package?
I'm a little confused by now .
I'm dealing with my-app-entity-beans.jar like a third party library because I'll have remote clientes for my EJBs.
So, when I want someone to consume my remote EJBs, I just provide my-app-entity-beans.jar to the developer in another software factory.