• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

inner class

 
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)
 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!