Hi please I am pasting my code
I am using vector to store information.
public class BookBean implements SessionBean
{
SessionContext ctx;
Vector v = new Vector();
All interface methods
------------
----------
--------
public void addBook(
String str)throws RemoteException
{
v.add(str);
}
}
my Client prog.
remote.addBook("VB");
remote.addBook("ASP");
remote.addBook("EJB");
remote.addBook("Java");
remote.addBook("Oracle");
bookList = remote.getContents();
Enumeration e = bookList.elements();
while(e.hasMoreElements())
{
System.out.println(e.nextElement());
}
when ever I run this code it adds books and displays. Again when I run the same code current list and the previous list are printing
how to handle that. Container will take care of that or I have to handle in code?
Hope u got my problem.
Thanking you
Saradhi