• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Session Bean  RSS feed

 
Rahman ziaur
Greenhorn
Posts: 23
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • 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
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not SCJP question, moving...
 
Mike Zal
Ranch Hand
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • 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 Java Spring
  • Mark post as helpful
  • send pies
  • 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
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • 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 Java Spring
  • Mark post as helpful
  • send pies
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!