Hello!
sorry, my question is going to be a little confusing
i have
jsp,
servlets, beans, and some other classes(session
ejb but never mind). firstly, servlet creates a bean_1 then the bean_1 creates an ejb(obj1), the bean_1 is used by .jsp. then the servlet creates a bean_2 and what i need is to have the same ejb object(obj1) in the bean_2 as i had in the bean_1. i'm going to send HttpSession or HttpRequest from servlet to constructors for the both beans, so that i could use session.setAttribute("obj1", obj1) in the bean_1 and session.getAttribute("obj1") in the bean_2. but it seems to me not really nice to put HttpRequest objects in beans. if somebody can understand what i mean here
and suggest some solution i would be just happy