Application: an
EJB application
Scenario: Invoking an Entity Bean from inside a Session Bean. Send Entity Bean's attributes to client for presentation for inistance. We normally create a view class(like UserView) over the Entity Bean and send this class to the mediator. And this view class will be sent to presentation layer (for example a
JSP).
Question: It'd be much more flexible if data (Entity Bean's attributes) will be sent to client as a XML file. If we want to pursue this approach
1- is it true that we do not need thoes view classes any more, and instead we should write Entity Beans' data into an XML file?
2- Then what are our choices to send these XML files to client?
3- What is the common architecture for XML data transportation?
Thank you for your help.