"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?
About Question enthuware.oce-ejbd.v6.2.343 :
Moderator: admin
-
- Posts: 38
- Joined: Fri Aug 16, 2013 11:37 pm
- Contact:
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.343 :
Not really sure. May be they will allow it for singleton beans in future versions of the spec
-Paul.
-Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.343 :
Let me answer this question:
On p. 598,
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.I understand this for stateless, stateful and MDB, but why not for singleton beans?
I mean why spec prevent for singleton bean also?
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.
-
- Posts: 31
- Joined: Sun Dec 27, 2015 1:47 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.343 :
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.
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.
Who is online
Users browsing this forum: No registered users and 82 guests