This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Edit ejb-jar.xml after deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Edit ejb-jar.xml after deployment" Watch "Edit ejb-jar.xml after deployment" New topic
Author

Edit ejb-jar.xml after deployment

Arun Kumar
Ranch Hand

Joined: Jan 21, 2005
Posts: 129

Hi All

Can we edit the ejb-jar.xml after deployment?,

basically we need to store the datasource username,password.log directory etc. so rather than creating a new properties file for these values we thought to provide them as enviornment variables in ejb-jar.xml

but after deployment we are not able to update the ejb-jar.xml,we are using Websphere application server v5.1,is there a way to do the same
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Arun,
You can edit somethings through the admin console and restart the app.

However, the things you listed seem like they are better outside the ejb-jar.xml:
- username/password - should be defined on datasource resource. The ejb-jar.xml should just contain a reference to this datasource.
- log directory - this is really better in a property file, but you could use a websphere server level variable if you have a reason not to use property files.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Arun Kumar
Ranch Hand

Joined: Jan 21, 2005
Posts: 129

Thanks Jeanne

I am pretty new to EJB and your comments are really helpful
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Edit ejb-jar.xml after deployment
 
Similar Threads
Local EJB call - Naming Exception
Bean Pooling when is it decided(ian mock exam)?
ejb-jar.xml syntax
how to deploye EJB
ejbPostCreate: bean not saved