On Apr 2, 2008, at 6:22 PM, Matt Johnston wrote: > Does the current version of resin support the @Remote functionality of > EJB3? I looked at the documentation, but it was very sparse. > > I basically have an EJB3 that I want to share among all my web-apps > within the same resin server. Each web-app is independent (each is > on a > separate domain name). How I can share my beans between each of > these apps?
Those are actually different questions. In your case, you don't really need to use @Remote, since it's all in the same server. Resin's EJB support works in all of the Resin contexts: web-app, host, cluster. So, if you configure your bean at the <cluster> level, it will be available for all of your virtual hosts. If you configure it at the <host> level, it will be available for all the web-apps in your host. So, you might have something like: <resin ... ... <cluster id="app-tier"> <class-loader> <tree-loader path="ejb-lib"/> </class-loader> <ejb-session-bean class="qa.MyClass"/> (Or use <ejb-server/> instead of <ejb-session-bean/>.) -- Scott > > > -- > > Matt Johnston > http://www.lattaoutdoors.com > http://www.gearapalooza.com > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest