n Sat, 27 May 2000 12:35:48 +0530, Shiv Kumar <[EMAIL PROTECTED]>
wrote:
>I have a couple of beans which talk to an external server (say, a directory
>server). The EJBs need to know the server's IP address and port in order to
>talk. They pick these values from the environment entries in ejb-jar.xml. I have
>the same values in both the EJB's deployment descriptors. Whenever I want to
>connect to another server running on a different machine, I should change the
>env entries in both the deployment descriptors. As a bean developer I know which
>beans need these values and I can change them.
>
>But when I deliver my product to the customer, he should be careful enough to
>change the env entries in all the EJBs to point to the right server. Otherwise
>the product will not run properly. Changing these entries is also a pain. First,
>he should unjar the ejb jar file. Change the entries in ejb-jar.xml file
>(without introducing any syntax errors), then jar it back and deploy it on the
>app server.
<snip>
Yes, changing an entry can be a pain, especially if it applies to all
beans.
But using the deployment descriptor is definitely the preferred way to
handle this.
You just need a more convenient way to work with it.
:-)
<vendor>
I have just released v1.0 of my EJX editor, which can be used to edit
EJB 1.1 XML files,
both in unpackaged mode (.xml) and packaged mode (bundled in .jar file).
Besides the usual
editing facilities there are a couple of "wizard"-style functions that
are handy to use.
You can, for example, add an environment entry to all of your beans, and
also update this
value for all beans later on. Overall, this tool makes it a breeze to
work with deployment
descriptors.
And it's OpenSource. Full source included, and you're free to make any
extensions you wish to it.
Etc. etc. blah blah..
Download from:
http://www.dreambean.com/ejx.html
</vendor>
Thanks for listening,
Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".