Forums Register Login

Edit ejb-jar.xml after deployment

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks Jeanne

I am pretty new to EJB and your comments are really helpful
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 762 times.
Similar Threads
how to deploye EJB
ejb-jar.xml syntax
ejbPostCreate: bean not saved
Local EJB call - Naming Exception
Bean Pooling when is it decided(ian mock exam)?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:43:44.