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

Moderator: admin

Post Reply
sanju.ait@gmail.com
Posts: 38
Joined: Fri Aug 16, 2013 11:37 pm
Contact:

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

Post 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?

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Not really sure. May be they will allow it for singleton beans in future versions of the spec :)
-Paul.
If you like our products and services, please help us by posting your review here.

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post 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.

aazizi.tarik
Posts: 31
Joined: Sun Dec 27, 2015 1:47 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests