aspose 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating XML in EJB
 
Similar Threads
Entity Persistence
JDBC connection issue with EJB
convert of text into xml
Serializing XML Dom Document Object and returning it from an EJB method...
Confusion between Entity and Session Bean