Hi,
Try calling an external process like a corba server to load and return the
data or alternatively storing the xml file in a database. I use JDataStore
for this kind of storge compared to normal entity storage in a relational
database.
http://www.inprise.com/jdatastore/
William
"JDataStore has the common characteristics of an embeddable database a
small footprint, high performance, portability, zero administration,
replication/synchronization with any database that surfaces a JDBC driver
(which almost all worthwhile databases do), transaction management and crash
recovery.
JDataStore is also a portable file system. A single JDataStore file can
contain multiple streams. A stream can be a table, a secondary index for a
table, an arbitrary file or even a serialized Java object. The JDataStore
file has a hierarchical directory for organizing and locating the streams it
contains. "
> -----Original Message-----
> From: Marc-Oliver Scheele [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, February 21, 2000 5:40 PM
> To: [EMAIL PROTECTED]
> Subject: IO-restrictions and XML Files
>
> Hello;
>
> I know; as defined in the EJB 1.1 specification file I/O is not allowed.
> That means using classes from the java.io package throws a security
> exception.
>
> But how can you access properties stored in files in a separate resource
> directory.
>
> For example:
>
> I have a couple of xml-files (and one DTD) that are used for
> initialisation and configuration.
> My enterprise bean should use sun's jaxp xml-parser (that use java.io.*)
> to read
> the data from the file into an entity bean.
> I think that is a typical scenario, but from my understanding it is not
> allowed
> in EJB1.1.
>
> Any hints ?
> Thanks
> Oliver
>
> ==========================================================================
> =
> 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".
***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************
===========================================================================
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".