Hi,
I think there will be a suitable pattern for this...
I need to expose the same data but in different representations, as XML or as a Collection. What I need is an EJB which gave me the data in the format I need in different points of my web application. But, which would the the pattern for this problem at a design phasse?
thanks.
Jose R.
-
ejb with access to same data, distict interfaz, which pattern? (1 messages)
- Posted by: Jose Ramon Diaz
- Posted on: November 27 2002 04:38 EST
Threaded Messages (1)
- ejb with access to same data, distict interfaz, which pattern? by Web Master on November 27 2002 10:44 EST
-
ejb with access to same data, distict interfaz, which pattern?[ Go to top ]
- Posted by: Web Master
- Posted on: November 27 2002 10:44 EST
- in response to Jose Ramon Diaz
You could create a class that implements Collection and has a method for getting the items in the collection as XML.
Or you could just write 2 methods on your EJB that give you the data as a collection and as xml.