Ben,
Why do you want to store this settings in a XML file? I think the best
approach is storing them in a database, and forget about XML... If you want
to have a centralized point of access to this settings I think I would make
an stateless session bean that handles all the stuff, and abstracts you from
the real implementation (XML, database, LDAP). Anyway, if this settings are
to be changed, I wouldn't use the XML file approach.
Hope this helps
Jose
-----Mensaje original-----
De: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]En nombre de B E N J A M I N | BROLL
Enviado el: mi�rcoles, 08 de noviembre de 2000 21:16
Para: [EMAIL PROTECTED]
Asunto: AW: Using XML in EJB
> I think Benjamin should extend Rickard's proposition with Helper
> classes. Just
> like you can have a bunch of "external" (server-classloader-loaded) helper
> classes, you could have similar classes that parse, load and store an XML
> file.
Right, that's what I thought of. But since I don't want to write a tool like
XML-Spy, which is able to abstract the XML-source from the editing person
and gives a clearer picture of the document, I just want to present the
source of the XML which should be manipulated. Thus I would have to retrieve
and return plain text and _not_ manipulate the internal JDOM representation
of the document.
So in the end the bean would have to have methods for directly storing and
loading documents thus somehow serving as a proxy for the client to the
files - and I'm not sure whether I should implement the system this way ...
Any comments ? :)
.bbr
===========================================================================
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".