0 Replies Latest reply on Feb 29, 2008 9:20 AM by dilip ochani

    How to invoke Java beans <Enitty Home> classes generated by

    dilip ochani Newbie


      I have generated codesuing seam gen and it has generated all the JSF files and Java persistence classes. e.g.
      package com.test.seam.sessionbeans;

      import com.test.seam.entitybeans.*;
      import java.util.ArrayList;
      import java.util.List;
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.framework.EntityHome;

      public class CouponHome extends EntityHome {

      public void setCouponCouponId(Integer id) {

      public Integer getCouponCouponId() {
      return (Integer) getId();

      protected Coupon createInstance() {
      Coupon coupon = new Coupon();
      return coupon;

      public void wire() {

      public boolean isWired() {
      return true;

      public Coupon getDefinedInstance() {
      return isIdDefined() ? getInstance() : null;

      public List getListItemsCouponses() {
      return getInstance() == null ? null : new ArrayList(


      Now the JSF files generated can invoke the beans, how can i invoke these beans from standalone applications.
      Thanks in advance