I am required to pass data from presentation layer to Enterprise
Java Beans for database related operations. So presently i am passing a hashtable to the
EJB that contains data for entire table. Now my problem is when i use hashtable then i have to do lots of get and put operations and every time it does the hashing. Is there any other efficient way to pass the data to ejb. One solution that is coming to my mind is to create a new class that contains all database variables as it's member variable. Now presentation layer can set the value of required member variables of the that class and pass that object to the EJB.
---------------------------------------------
is it more efficient to pass a hashtable or a class object that contains only member variables for the purpose of passing data in terms of memory and time?
------------------
[This message has been edited by yogesh_ar (edited September 12, 2000).]