You could also put the properties on a http server and having the beans load
them via a URL. This has the following advantages:
1. Doesn't violate the EJB spec. (At least the last time I checked).
2. Allows for dynamic reloading of properties without redeploying.
3. Provides a means of supplying read only data without storing in a database.
--Victor Langelo
Charles Chan wrote:
> I have a similar concern... My properties need to be
> modified by non-technical users and I don't want them
> to mess up my XML files.
>
> The option I choose is to violates the EJB rules and
> load the properties file manually.
>
> I hope there is a better way to do it. Maybe XInclude
> (an XML-related spec in development at W3C) would help
> us in the future.
>
> (actually, if you're using WebLogic, you can also add
> your properties to the weblogic.properties as java
> system properties. this way, you don't need to read a
> file in your ejb)
>
> hope it helps,
> Charles
>
> --- Andreetto Angelo <[EMAIL PROTECTED]>
> wrote:
> > .... why not to describe these propertyes in the
> > XMLDescriptor? So each time
> > this EJB rises up it loads them.
> >
> > -----Original Message-----
> > From: Wenhui Bai at YSD [mailto:[EMAIL PROTECTED]]
> > Sent: marted�, 24. luglio 2001 06:38
> > To: [EMAIL PROTECTED]
> > Subject: About property files
> >
> >
> > Hi all,
> >
> > Could anybody kindly give me a light?:-)
> >
> > May I bundle some property files with my ejbs, so I
> > can use them in my ejbs?
> > I know that it's not allowed to operate on file in
> > ejbs according EJB's
> > specification.
> >
> > Thanks in advance.
> > Wenhui
> >
> >
===========================================================================
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".