• 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

EJB Session Bean

 
Greenhorn
Posts: 23
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Can I override the callback method of Stateless Session Bean in EJB3.0.If yes then how we can do that.And whats the purpose of each method in details.Please anyone tell me the in the depth about all these call back method of Stateless Seesion bean.any rael time example of Stateless session Bean


All suggestion and help must be appriciated.And i am sorry ..my english is not to good bare with it
Thanks in advance
 
Sheriff
Posts: 9679
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not SCJP question, moving...
 
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well what do you already know about session beans and why do you want to know about them? Have you tried googling for some help first? I am hesitant to reply with an answer because this sound suspiciously like a homework.
 
Rahman ziaur
Greenhorn
Posts: 23
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know about session bean concept.There are two types of Sb Stateless Session bean and Stateful Session Bean.In Stateless bean it doesnt maintain the session of client.Its having some call back method e,g newInstance(),ejbCreate(),ejbRemove(),setSessionContext etc.
I want to know that in details when these methods are invoked and how in EJB 3.0.can i overrride call back method?
on which algorithm these method executed in the container. i want to know all these things about Stateless Session bean.
I am new to ejb and this is not my homework.

Thanks for your reply nad looking forward to hear from your side explanation of these concepts.
 
Mike Zal
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This link should answer all those questions.

Edit: You need to click on the links in the article to see the actual examples
 
Rahman ziaur
Greenhorn
Posts: 23
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for Your reply.
We know our Stateless Session Bean go through following CallBack Method in order
Class.newInstances()-->seSessionContext()---->ejbCreate().
why sessionContext is seted to object before creation.After the ejbCreate() instance of our EJB will comes in life.my Question is that where i am setting sessionContext on which object.Because setSessionContext() method is executing before ejbCreate().

Any One please explain about this.
Thanks in advance
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic