-
1. Re: EAR deployment with custom datasource
bill.burke Sep 17, 2005 8:03 PM (in response to asael)I have created jira task for this and scheduled for Oct 6 release.
http://jira.jboss.com/jira/browse/EJBTHREE-296
You can watch to know when this bug is fixed. Unfortunately, RC2 is already packaged for release on Monday.
Some thing you want to try is put the -ds.xml file in the .par. Does that work? -
2. Re: EAR deployment with custom datasource
asael Sep 17, 2005 8:26 PM (in response to asael)No still not working (put it in root of .par and in META-INF)
AFAK it was always a problem with "packaged" datasources. Always had to set up dependencies but don't know how to do it with the Entity Manager. I think in general "packaged" datasources should be initialized first, what shouldn't be the problem b/c the "driver" must be placed in $server/lib anyway. -
3. Re: EAR deployment with custom datasource
mugwump Nov 9, 2005 6:29 AM (in response to asael)What is the status of this issue?! Is this resolved and is it now possible to deploy packaged datasources inside the ear?! Or is it neccessary to deploy them outside?
-
4. Re: EAR deployment with custom datasource
bill.burke Nov 9, 2005 11:29 AM (in response to asael)it is scheduled for next relesae. I'm working on it.
-
5. Re: EAR deployment with custom datasource
khoyaraaz Nov 11, 2005 3:26 PM (in response to asael)So how to setup connection to DB?
-
6. Re: EAR deployment with custom datasource
rpochet Nov 24, 2005 4:38 PM (in response to asael)Don't know if it may help but the problem is the following:
Deployment sequence:init(...) create(...) start(...)
The deployment order (050:.deployer,...) is only used within a method
DS: datasource is bound in the start(...) method
EJB3:entity manager is set up in the create() method
So:
init(...) OK
create(...) NOK as DS is not yet bound
...
Romuald. -
7. Re: EAR deployment with custom datasource
bill.burke Nov 26, 2005 4:52 PM (in response to asael)should be fixed in the next release. Just did some work in this area.
-
8. Re: EAR deployment with custom datasource
nholbrook Dec 7, 2005 11:19 AM (in response to asael)Any word on the progress with this bug? I have the same issue where I have a .ejb3 and a .par inside a .ear. There are some classes in the .ejb3 that have dependencies on the entity manager created by the .par. The ejb3 is always deployed first no matter how I declare it in the application.xml.
-
9. Re: EAR deployment with custom datasource
asael Dec 7, 2005 12:23 PM (in response to asael)No need to ask here for further information. As stated above by Bill it is STILL listed at JIRA http://jira.jboss.com/jira/browse/EJBTHREE-296
Simply register/log in and watch it. And even better vote for it. -
10. Re: EAR deployment with custom datasource
bill.burke Dec 7, 2005 6:57 PM (in response to asael)I have finished this in CVS HEAD, but have not adequately tested that it works correctly.