Peter McCombs writes:
> On Wednesday 12 March 2003 02:52 am, [EMAIL PROTECTED] wrote:
> > Sorry for the blank message earlier... (I hit ctrl-enter by mistake).
> >
> > I have studied the tutorial by Rick Hightower on CMP/CMR.
> > He uses a UserManagementBean to control his CMP beans.
> >
> > I have a simular application which contains a number of CMP beans which
> > store information about Advertisements produced by my Company.
> >
> > I also have a 'Management-bean', which can add Advertisements, delete
> > them, add corrections, etc....
> >
> > I made my CMP beans view-type="local". So all operations have to go
> > through the 'Management-bean'
> >
> >
> >
> > +-----------------------+              +--------------------------+
> > +----------------------+
> >
> > |    ManagementBean     |--------------|       Advertisement
> > |-1--------0*-|       Correction     |
> >
> > +-----------------------+              +--------------------------+
> > +----------------------+
> >
> > |  addAdvertisement     |
> > |  deleteAdvertisement  |
> > |  addCorrection        |
> > |  // etc....           |
> >
> > +-----------------------+
> >
> > Now I want to build a web-interface where users can view *all*
> > advertisements with all there Corrections.
> > But, I can't show Advertisements directly because they only have local
> > interfaces.
> >
> > What's the way to go now? Do I have to make my beans also remotely
> > accessible? Or is there a better way?
> >
> > I'm sorry if this is not the correct mailing list (I don't know anybody
> > else to ask ;-)).
> >
> > Many Thanks,
> >
> > Harm de Laat
> > Informatiefabriek
> > The Netherlands
> >
> 
> Harm,
> 
> There is a design pattern called "facade" where you have session beans that 
> access the CMP entity beans, a lot like you are describing. The entity beans 
> can have local interfaces, but your session beans would have remote 
> interfaces too. XDoclet will generate the facade session beans, which look a 
> lot like manager beans to me. 
> 
> You can write some of your own facade session beans that have custom business 
> logic for displaying the data that you need. These beans will also utilize 
> the CMP beans.

To see how to do a custom facade go to:

http://www.theserverside.com

[]'s


--
Cleber Miranda Barboza.                                         
I'm  a Computer Science student at University of S�o Paulo (USP). 
                                                                 
email: [EMAIL PROTECTED]
home page: http://www.linux.ime.usp.br/~cleberc



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to