• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB references

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic