Hi Harm, > 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.
If you are using a Web Conatiner embeded in your EJB-Server (such as JBoss-Tomcat) you can use Webdoclet to create ejb-local-refs for your Servlets or Struts/WebWork Actions (I recommend to use a MVC-Framework). Via xdoclet you do in such components: * * @web.ejb-local-ref name="Company" * type="Entity" * home="entity.interfaces.CompanyLocalHome" * local="entity.interfaces.CompanyLocal" * link="Company" * description="Reference to Company EJB" > > What's the way to go now? Do I have to make my beans also remotely > accessible? Or is there a better way? Although it is possbile to create both local and remote is not the best way to come to the target. (a anti-pattern if you want). You may consider to look a couple of J2EE Desing Patterns on java.sun.com. Also xpetstore (xpetsore.sf.net) is a good address to look who a EJB-J2EE-Web-App using XDoclet could developed. > > I'm sorry if this is not the correct mailing list (I don't > know anybody > else to ask ;-)). No problem. Bye Toby ------------------------------------------------------- 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
