• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb-xml  RSS feed

 
seetarama raju
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would be a better way to send the ejb output
in an xml form to the front end.From whatever i know it would be like ejb generating a dtd along with the data. And the servlet parses this and does the xslt stuff and give it back to front end
in a rendered fashion. Can anybody suggest me whether there is any better way of doing this
thanks in advance
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that I know what you're asking here, so apologies if I've missed the point...
I usually like to keep the interfaces between architectural tiers as simple as possible, while at the same time making them as light as possible.
XML is a very useful way of decoupling component interfaces and for exchanging information between disparate systems. In other words, I don't really like using it internally, for intra-component communication.
If you have a front-end already built that transforms XML then you probably don't have much choice. However, if you have more of a typical/classic J2EE architecture, then I would recommend that you keep it as simple as possible, and use RMI between the web-tier and EJB-tier. This way, you keep performance high and the components APIs simple.
Anybody else have any other thoughts?
Cheers
Simon
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!