This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating XML in EJB

 
Mila
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
Please refer to this thread.
 
Mila
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic