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?
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.
Narasimha Rao B.
posted 15 years ago
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,
Cowgirl and Author
posted 15 years ago
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.
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
Devious Experiments for a Truly Passive Greenhouse!