Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB references

 
faiza athar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reference to ejb can be stored by client by
Serializing the EJBObject to some storage??
Somehow these references are really confusing like on page 119 of ejb2.0 specifications.
Can someone plz give e.g for
The client can receive reference as parameter in a method call.
Whats the best way to understand all this. I'm new to ejb and this is really confusing.
Thanx
 
k doshi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reference to ejb can be stored by client by
Serializing the EJBObject to some storage??
Somehow these references are really confusing like on page 119 of ejb2.0 specifications.
Can someone plz give e.g for
The client can receive reference as parameter in a method call.
Whats the best way to understand all this. I'm new to ejb and this is really confusing.
The reference to EJB can be lost , for eg. between two methods where it is declared in one.
So we can serialize the reference to the EJB eg in a file,
then deserialize in the other method.
or we can pass the reference to another method as a parameter.
refer to Richard Monson Chp 5 client side API
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not quite understand the question. So instead of answering the question here are two things,
[1] If you are new to EJBs, you better read a book rather than specs. Mastering EJB is free on http://theserverside.com
[2] If you can afford to read EJB 1.1 specs, read'em because EJB 1.1 spec is easy to read and understand
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked into handles?
You should not serialize the EJB object.
 
k doshi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok,
i'm sorry about that, u can serialize either the primary key or the handle
thks
kiran
 
faiza athar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx everyone !
i guess i need to study a lot.Yeah got the mastering ejb book and where to study these handles???....back to o'reilly chap 5 .
Actually the references are really confusing esp in the beginnjing, so hopefully i'll come over it.
Thanx for the help and guidance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic