File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Generating XML in EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Generating XML in EJB" Watch "Generating XML in EJB" New topic
Author

Generating XML in EJB

Mila
Ranch Hand

Joined: Feb 14, 2002
Posts: 31
Hello,
Is it against good practice to generate XML documents in EJBs? E.g. I have this kind of
situation:
1) Stateless Ejb is called with data parameters by a Servlet.
2) Stateless EJB calls Entity Ejb which fetch data from Database.
3) Based on data read from database, Stateless EJB
generates XML document and returns it to Servlet.
Is this approach ok, any sample available?
br
Mik La
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Hi:
Please refer to this thread.
Mila
Ranch Hand

Joined: Feb 14, 2002
Posts: 31
I thing my question was not clear enougth.
The main problem is that how to read XML files
into EJB for parsing (java.io is prohibited in EJBs).
That's the main problem. Anyone invented anything
to this problem?
Thanks,

Originally posted by Don Liu:
Hi:
Please refer to this thread.
 
wood burning stoves
 
subject: Generating XML in EJB
 
Similar Threads
Serializing XML Dom Document Object and returning it from an EJB method...
convert of text into xml
Entity Persistence
Confusion between Entity and Session Bean
JDBC connection issue with EJB