> Hi Dim, Hi Ramesh - please dont mail me privately. If I feel I can answer in a helpful way, I will do so on the list.
> I have a stateless session bean.inside that i have lot of if conditions and > based on a condition that is satisfied by the front -end, > > i call a ordinary java class by creating a new instance of it.now the > problem is if the input by the front end is wrong i am throwing the > errors,when he rectifies and sends request again,my bean once again creates > a new instance.in a big picture,my memory gets full.can u tell me someway so > that i can access the same instance that i created when i receive the 2nd > request. rule #1 - dont optimize until you have finished the project. answer to your question: return the java object you create the first time to the front end. Have the front end put the instance in the session (I assume its a web tier), and then send it back to the server in the subsequent request. hth dim =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
