This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

session bean container

 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have some doubts and just want to discuss with all you guys. I was just wondering that why the spec doesn't allow a container to introspect the bean class and generate the component and home interface. Then the developer only need to code the bean class and also for the bean class the API can provide a class that contains the default implementation of all the container callback methods. Atleast it can be done for session bean . For entity beans there are these home business methods etc but for session beans I am not able to think of any restriction. Appreciate if you guys can give me some inputs on this .

Well the problem I can think in this case is that how the container will know about what all are the business methods that needs to be exposed but for that we can have a variable that the business method will set.

Thanks.
[ April 18, 2005: Message edited by: sawan parihar ]
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess they are not doing it only for session beans because of they need to keep consistency.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take the case of stateful session beans whose home interface has multiple create() methods. This too cannot be generated by introspection.

So as the previous post says, since it is only for stateless session beans that you can possibly introspect everything from the bean class, I guess they left it out there for consistency.
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI linoops ,
I guess for stateful we can introspect . In case of stateful session bean whose home interface has multiple create method will have corresponding ejbCreate in the bean class. That means with introspection we can generate the interface.

Thanks.
 
Arun
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh yeah.. i forgot that. Thanks for correcting me.

Regards.
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic