• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Is session bean Anonymous??

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In one of the mock exam, i come across the statement -- "Message Driven Beans are Anonymous to the client". Yes, it is meaningful because really client is not having any idea of bean.
At some other place, i come across the statement -- "A session object is non-persistent, anonymous and is destroyed if the container crashes or is restarted."
Now my concern is, Are session beans Anonymous to the client?

Any kind of thoughts on this are most Welcome.

Thanks is Advance,
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I really don't like the word "anonymous." It doesn't make any sense. An EJB either has a client, or it doesn't.
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agree with Nathaniel
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't like the word anonymous either. Some people use this word to mean that the client bean does not know the *identity* of the session bean, as opposed to the way clients know the primary key of entity beans. (Although the stub and handle of a session bean obviously *know* enough about the identity of a stateful bean to identify it to the server, but the client-specific code doesn't have access to any meaningful identify info).

So I could see using the term "anonymous" to refer to session beans, but then that makes NO sense to use it with message-driven, since the client has no reference at ALL to an MDB.

Cheers,
Kathy
 
Narasimha Rao B.
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thank You ALL for your valuable information.
Now my main concern is --> If i got a question on this in the exam -
Is session bean is Anonymous? Is the answer is *true* or *false*

Thanks in Advance,
 
Kathy Sierra
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You *won't* have a question on the exam that works like that, because we tried VERY hard to use terms that were more precise, or that were explicitly used in the specification.

But if I saw that question on a *mock* exam, I guess I'd say "true", because clients to NOT know the specific identity of session beans, since session beans do not use primary keys. But again, without knowing how the word "anonymous" is really being used, I don't know for certain the intention of that question.

You can relax about seeing that on the real exam. I think most people find the language of the exam clear, especially if you've looked at the EJB spec.

cheers,
Kathy
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic