Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inner class

 
minnu chand
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can I have an ineer class in side a an EJB(stateless Session bean)
 
Frank Lin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A no-brainer approach would be use a servlet as a control, to call your EJB and HOD class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic