Thanks for this valuable info Leander. I'll make sure to add link in the ejb-local-refs from the web tier in the samples.
In order to remote-enable EJBs by default you'll have to update the code in a few places. I'll explain, and if you do it, please upload a patch for your changes to SF. 1) We want an extra attribute <cmp20 viewtype="local|remote|both"/>. Add a setter/getter for this in CMP20Plugin.java. 2) We want to set appropriate view type on the table/column level based on the value of this viewtype property. This should be done in the init () method of Entity20Column.java class. You can access the value with String viewtype = ((CMP20Plugin)getPlugin()).getViewtype(); and add logic for the three different cases here. Make sure you add "preference" support just like for local setters/getters so that a setting is "remembered" (requires JDK1.4) That should be it. These changes will make it possible to "preset" the view type at the Ant level. If you run in gui mode, you should see the remote checkboxes being checked too. Hope this is enough info to get you started. Aslak ----- Original Message ----- From: M-Leander Reimer <[EMAIL PROTECTED]> Date: Tuesday, June 25, 2002 4:24 pm Subject: [Middlegen-user] Using Ant for Local and Remove views > Hi there, > > In reference to my last mail: It seems that JBoss (at least 2.4.5 > so I > think 3.0.0) as well, makes the <ejb-link> tag for <ejb-local-ref>s > mandatory, which is not what it says in the DTD. I added the link > attribute to the @web:ejb-local-ref definitions in all the struts > classes under /middlegen/samples/src/javsamples deploys OK. > > Now my question. In order to do some test, I would need the remote > interfaces of all the generated EJBs. But I don't want to use the GUI > all the time to switch this feature on. > > Is there an Ant target level tag where I can specify the views (so > localand remote) Middlegen should include? > > Or can I modify the code somewhere to support this? > > Thanks for your help! > > Leander > > > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > middlegen-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/middlegen-user > ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
