The second release of the Enterprise Java Bean 2.0 specification public draft is now available for download on java.sun.com.
Get the Public Draft 2 Specification.
-
EJB 2.0 Public Draft 2 is available (7 messages)
- Posted by: Floyd Marinescu
- Posted on: September 14 2000 11:30 EDT
Threaded Messages (7)
- EJB 2.0 Public Draft 2 is available by Eron Wright on September 15 2000 14:16 EDT
- EJB 2.0 Public Draft 2 is available by Floyd Marinescu on September 15 2000 18:14 EDT
-
EJB 2.0 Public Draft 2 is available by Dimitri Rakitine on September 15 2000 08:35 EDT
-
EJB 2.0 Public Draft 2 is available by Ed Roman on September 16 2000 12:40 EDT
- EJB 2.0 Public Draft 2 is available by Floyd Marinescu on September 16 2000 11:40 EDT
-
EJB 2.0 Public Draft 2 is available by Dimitri Rakitine on September 17 2000 06:11 EDT
- EJB 2.0 Public Draft 2 is available by Floyd Marinescu on September 18 2000 10:18 EDT
-
EJB 2.0 Public Draft 2 is available by Ed Roman on September 16 2000 12:40 EDT
-
EJB 2.0 Public Draft 2 is available by Dimitri Rakitine on September 15 2000 08:35 EDT
- EJB 2.0 Public Draft 2 is available by Floyd Marinescu on September 15 2000 18:14 EDT
-
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Eron Wright
- Posted on: September 15 2000 14:16 EDT
- in response to Floyd Marinescu
If only the spec went the distance and specified full JavaBeans-style events (using JMS for delivery).
When I heard that EJBs could receive JMS messages, I became very excited that an event system was possible (to promote decoupling, and create read-only beans that refresh intelligently). However, only MessageDrivenBeans can receive messages. Entity beans cannot. DAMN!
-
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Floyd Marinescu
- Posted on: September 15 2000 18:14 EDT
- in response to Eron Wright
Eron,
What is to stop you from using a MessageDrivenBean and calling your in-memory entity beans and telling them to refresh?
Floyd -
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Dimitri Rakitine
- Posted on: September 15 2000 20:35 EDT
- in response to Floyd Marinescu
How would you know if your entity bean is in memory??? -
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Ed Roman
- Posted on: September 16 2000 12:40 EDT
- in response to Dimitri Rakitine
You don't know if they're in memory, because of the interface-based programming methodology behind EJB. But why does that matter? -
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Floyd Marinescu
- Posted on: September 16 2000 23:40 EDT
- in response to Ed Roman
If the beans are read only and you are pureposfully trying to keep them in memory and "current", then you can just implement a finder that returns all the entity beans of the type you want to cache, and call some sort of "updateMe" method on each bean, at regular intervals.
There is no actual way to "detect" which beans are in-memory.
Floyd -
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Dimitri Rakitine
- Posted on: September 17 2000 18:11 EDT
- in response to Ed Roman
Exactly my point - since beans are accessible via interfaces only and there is no way to tell if they are in memory or not - that makes JMS-based cache updates impossible to implement.
And I do not think it's a good idea to implement an 'update' method on read-only entity beans. First, because finder will return all beand, not only ones currently cached in memory Second, this is not going to work because implementation may have multiple instances, cluster for example. -
EJB 2.0 Public Draft 2 is available[ Go to top ]
- Posted by: Floyd Marinescu
- Posted on: September 18 2000 10:18 EDT
- in response to Dimitri Rakitine
Yeah you are right Dimitri. I don't think my cache scheme will work in non-weblogic (optimistic cache) containers.
Floyd