Hi.

Is this really allowed in the specs? As far as I can remember file
access from EJBs is not advised. Concearning the original question -
yes, using an xml-parser should work out nicely - even though the
method might throw an IO-exception. As long as you're not accessing a
local file to read the XML (the XML might origin from the DB och an
URL).


Wednesday, March 28, 2001, 11:04:06 AM, you wrote:

APJC> You can even read an XML directly from a file using EJB. I have done this
APJC> using a stateless session bean to parse an XML file using an helper class.
APJC> You need to use any of the standard parsers to parse the XML

>> Can I use XML parsers inside EJB?
>> The methods that I use throw IO Exception.
>>
>> Is it allowed inside the container?
>>

--
Best regards,
 Anders                            mailto:[EMAIL PROTECTED]

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