There have been many long threads on this. You find them in the archives.
Another solution could be to store your configuration data in the jndi/ldap
tree, and have your configuration application persist the configuration data
through the jndi api. The EJB would then look-up the serialized ConfigData
instance.

/Johan

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of mesha
Sent: den 9 november 2001 15:34
To: [EMAIL PROTECTED]
Subject: File IO

Hi all,

I am writing a session bean ( CommAdapter) basically a APACHE SOAP client
which will be calling services on MS SOAP Server. Now to configure this
Adapter i need to read from properties file. I can't use the env-entry as
this properties will be modifed by some other GUI tool and i have to use
modified values.

I have a class ConfigData having memeber fields for all properties which
have to configured of ADapter. In its constructor i load the properties file
prop.load("fileName") and initializes the fields.

Now , as we can't do File IO operation inside the ejb . How can i configure
my component?. Can i create an instance of ConfigData in my bean which
inturn perform the IO operation ?.

Needs urgent response, help will be very much appreciated.

Thanks.

mesha

===========================================================================
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".

===========================================================================
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".

Reply via email to