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..
-
what's wrong with ejbCreate() method (2 messages)
- Posted by: amit joshi
- Posted on: August 24 2000 05:07 EDT
Threaded Messages (2)
- what's wrong with ejbCreate() method by Mayank Nain on August 24 2000 10:31 EDT
- what's wrong with ejbCreate() method by amit joshi on August 24 2000 14:05 EDT
-
what's wrong with ejbCreate() method[ Go to top ]
- Posted by: Mayank Nain
- Posted on: August 24 2000 10:31 EDT
- in response to amit joshi
What are the type of two variable which you are not passing thru create method.
Those two variable might be getting initialized ......
Thanks
Mayank -
what's wrong with ejbCreate() method[ Go to top ]
- Posted by: amit joshi
- Posted on: August 24 2000 14:05 EDT
- in response to Mayank Nain
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