Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.343 :

Posted: Mon Sep 02, 2013 6:32 am
by sanju.ait@gmail.com
"They cannot create a Socket server"

I understand this for stateless, stateful and MDB, but why not for singleton beans?
I mean why spec prevent for singleton bean also?

Re: About Question enthuware.oce-ejbd.v6.2.343 :

Posted: Sun Sep 08, 2013 6:31 am
by admin
Not really sure. May be they will allow it for singleton beans in future versions of the spec :)
-Paul.

Re: About Question enthuware.oce-ejbd.v6.2.343 :

Posted: Sun May 10, 2015 2:40 pm
by himaiMinh
Let me answer this question:
I understand this for stateless, stateful and MDB, but why not for singleton beans?
I mean why spec prevent for singleton bean also?
The spec says any bean is used as a client, not a server. That is why singleton beans cannot be used as a socket server.
On p. 598,
Allowing the instance to become a network server would conflict with the basic function of the enterprise bean - to serve the EJB clients.

Re: About Question enthuware.oce-ejbd.v6.2.343 :

Posted: Thu Jan 21, 2016 3:03 pm
by aazizi.tarik
Hi,

You said in option 3 that "Only final static fields are allowed for EJB". maybe this sentence should be rephrased, because final is only recommanded.