-
1. Re: Can you change the context root of a deployed ear?
bill.burke Jun 2, 2006 9:37 AM (in response to apill)you mean for default EJB JNDI names? No, there is not. Please log a jira feature request.
-
2. Re: Can you change the context root of a deployed ear?
apill Jun 2, 2006 9:57 AM (in response to apill)Are you saying ...
I cannot deploy an ear file named my-app-1.0.ear containing MyBean to the following JNDI pathmy-app/MyBean/remote
instead it will default tomy-app-1.0/MyBean/remote
If that is what you are saying, then we are on the same wavelength and I'll raise a feature request!
Cheers -
3. Re: Can you change the context root of a deployed ear?
apill Jun 2, 2006 10:02 AM (in response to apill)Which JBoss JIRA project should I raise the feature in?
-
4. Re: Can you change the context root of a deployed ear?
bill.burke Jun 2, 2006 11:50 AM (in response to apill)EJB3 is fine I guess. I'm not sure when we could get to this as another JBoss 4.0.x release isn't scheduled for awhile and I think this requires changes to the EAR deployer.
Log in in the EJBThree module -
5. Re: Can you change the context root of a deployed ear?
wonnekeysers Jul 28, 2006 2:42 AM (in response to apill)Has this feature request been created already? I want to vote for it! :-)
I am wondering where this feature, of prepending the .ear package name to the EJB names, is coming from. Is it in the specs of EJB 3 or JavaEE 5?
Because I see a few problems that may occur in this approach. (Or is there already a solution that I missed?)
- Maven builds & version numbers
As mentioned in the first post, EJB clients will need to know the version of the ear before being able to lookup the beans.
Moreover, new versions of .ear containing EJBs will also require updated clients (external war or client app)
- Maven builds & unit testing with embedded EJB3
JNDI names will be different between unit tests from maven using embedded EJB3 and deployment on JBoss AS afterwards.
- Packaging/Deployment
What if the person responsible for deployment renames the .ear file before deploying? Application will not work?
- ...
Thanks for your feedback -
6. Re: Can you change the context root of a deployed ear?
apill Jul 28, 2006 3:31 AM (in response to apill)Yes the issues is http://jira.jboss.com/jira/browse/EJBTHREE-617[/url]