I�m studying the architecture for a J2EE project which heavilly relies
on XML parsing happening inside the Application Server.
The basic scenario is as follows:
A client sends an org.w3c.dom.Document to a stateless session bean. The
bean then creates a Transformer (xalan) to do the transformation of the
xml which should:
- run some javascript code based on some xml elements (using the ibm bsf
framework),
- generate a new org.w3c.dom.Document based on some elements (which I
later use to do a bulkinsert into Oracle using OracleXMLSave)
- insert, delete or update some data in a table based on some tags (the
previous step depends on this data)
Although I�m basically familiar with all these steps, I�m not really
certain on
a) am I allowed to load the stylesheet inside the EJB container (it�s
not the ejb loading the file but a helper class)
b) which is the best solution for inserting, deleting or updating data
from the table.
There are basically three options:
1 - using apache.xalan.lib.sql to connect directly to the database from
the transformer which would require me to open or obtain a (pooled)
connection from the Application server or directly through jdbc.
2 - Creating a class which in turn either calls an entity bean to do the
db work
3 - Creating a class which obtains a connection (pooled) either from the
app server or using jdbc directly and execute insert or update sql
statements.
Sven
===========================================================================
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".