what's wrong with ejbCreate() method

Discussions

EJB programming & troubleshooting: what's wrong with ejbCreate() method

  1. what's wrong with ejbCreate() method (2 messages)

    Hi All,
        I am facing a very wierd problem.I have a cmp with five variables..
    and i have a create method in which i pass the value of only three variable,
    Now here comes the problem..the other two variables are also getting updated(for which i am not passing any value in create method).I have checked these two values in the database and this value are of other record..But what i think is that
    the value for these two variablse should be null in the database..
  2. what's wrong with ejbCreate() method[ Go to top ]

    What are the type of two variable which you are not passing thru create method.

    Those two variable might be getting initialized ......
    Thanks
    Mayank
  3. what's wrong with ejbCreate() method[ Go to top ]

    This two variables are of type string and defined in Bean...
    for ex
    String a
    String b
    String c
    String d
    String e
    ejbCreate(a,b,c)
    {
    this.a=a;
    this.b=b;
    this.c=c;
    }
    now what i have done is

    ejbCreate(a,b,c)
    {
    System.out.println(a);
    System.out.println(b);
    System.out.println(c);
    System.out.println(d);
    System.out.println(e);
    this.a=a
    this.b=b
    this.c=c
    }
    now it is printing all the value i.e a,b,c,d,e
    which is of different record