aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "inner class" Watch "inner class" New topic
Author

inner class

minnu chand
Greenhorn

Joined: Feb 06, 2001
Posts: 5
can I have an ineer class in side a an EJB(stateless Session bean)
Frank Lin
Ranch Hand

Joined: Jan 26, 2001
Posts: 76
I do not see why not. But I would not do so unless it makes a very strong case because it defeats the whole purpose of component architecture. Can you explain what makes you to takes this path? Can't you make this inner class a seperate bean though?
minnu chand
Greenhorn

Joined: Feb 06, 2001
Posts: 5
hank you for your reply Frank.
I don't have full knowledge in EJB.
In my application this stateless session bean has to perform some events. My stateless session bean has to call a HOD class which is going to stay outside the container if a make a bean and call it through the stateless session bean. In order to avoid that I have tried to put that one inside stateless session bean. Now it is working fine. Now I came across with new problem.
In my HOD inner class I have to do some thread handling. As EJB don't support threads.that SLSB is not working properly. My main
application is Web Enablement of S390.
Frank Lin
Ranch Hand

Joined: Jan 26, 2001
Posts: 76
A no-brainer approach would be use a servlet as a control, to call your EJB and HOD class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inner class