File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EJB references Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "EJB references" Watch "EJB references" New topic
Author

EJB references

faiza athar
Ranch Hand

Joined: Oct 30, 2001
Posts: 136
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

Joined: Mar 16, 2002
Posts: 41
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

Joined: Aug 19, 2001
Posts: 341
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


ChintanRajyaguru.com
SOADevelopment.com - Coming soon!
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Have you looked into handles?
You should not serialize the EJB object.
k doshi
Ranch Hand

Joined: Mar 16, 2002
Posts: 41
ok,
i'm sorry about that, u can serialize either the primary key or the handle
thks
kiran
faiza athar
Ranch Hand

Joined: Oct 30, 2001
Posts: 136
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!
 
 
subject: EJB references
 
Threads others viewed
page 168 question 3
Operations allowed in the methods of a stateless session bean
reference problem
EJB references
entity bean remote&home survive crash
MyEclipse, The Clear Choice