-
1. Re: Does a PAR have to reside in an EAR?
platinumdragon Aug 3, 2005 2:17 PM (in response to bill.burke)Good catch, thank you, but no. It's a typo. They are both envEM.
-
2. Re: Does a PAR have to reside in an EAR?
bill.burke Aug 3, 2005 2:20 PM (in response to bill.burke)how is your application.xml/jboss-app.xml set up?
what is the structure of your ear? -
3. Re: Does a PAR have to reside in an EAR?
platinumdragon Aug 3, 2005 2:27 PM (in response to bill.burke)I am trying to avoid doing an EAR. I would like to have individual PAR/EJB3 files in a subdirectory of deploy:
deploy/
deploy/test/
deploy/test/environment.par
deploy/test/this-business.par
deploy/test/that-business.ejb3
so that I can replace, or add new functionality dynamically. I would actually like the stateless bean above to be a JMX Service instead, but I am just trying to get it to work now.
I don't have an application.xml or jboss-app.xml. Just the Environment interface, EnvironmentBean class, and persistence.xml file. There is a similar par in the trailblazer, but it is within an EAR, which I am hoping to avoid.
Thanks,
Mike -
4. Re: Does a PAR have to reside in an EAR?
platinumdragon Aug 3, 2005 4:21 PM (in response to bill.burke)Incidentally, if I comment out the @PersistenceContext line, it deploys fine.
-
5. Re: Does a PAR have to reside in an EAR?
platinumdragon Aug 8, 2005 3:36 PM (in response to bill.burke)So.. nobody knows, huh?
-
6. Re: Does a PAR have to reside in an EAR?
bill.burke Aug 11, 2005 8:39 AM (in response to bill.burke)looks like the .ejb3 file is being deployed before the PARs. I don't have any automatic dependency management at the moment. if you package this stuff in an EAR you can define the deployment order (the order the module's are specified). This may solve your problem.
I'm on vacation this week so won't be able to dive in til next week or later.
Bill -
7. Re: Does a PAR have to reside in an EAR?
msly Aug 11, 2005 11:06 AM (in response to bill.burke)I noticed the same issue. If I restart the server the ejb3 archive tries to load first and says that the entities in the par file are not bound. Should we post this issue in the design forum?
-
8. Re: Does a PAR have to reside in an EAR?
goeh Aug 15, 2005 4:26 PM (in response to bill.burke)I also had the same issue, but found a workaround.
I placed all my entities in a .ejb3 archive with a name that deployed before my session beans archive. Then it all worked. I know that this is not by the spec, but it seems to works with 4.0.3 RC1 and RC2.