Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Creating a framework using EJB 3.0?
Creating a framework using EJB 3.0? [message #433532] Fri, 17 February 2006 17:23 Go to next message
Bryan Hunt is currently offline Bryan Hunt
Messages: 346
Registered: July 2009
Senior Member
I'm working on a framework and I'd like to persist the domain model
using EJB 3.0, but this doesn't seem possible. Since the project
contains a pointer to a specific database, anyone that were to use and
extend the framework would be forced to use that database
specification. Am I missing something? Also, does EJB 3.0 handle
inheritance? Can I create a base class, specify attribute persistance,
extend it and specify persistence for the attrubutes of the specialized
class?

Bryan
Re: Creating a framework using EJB 3.0? [message #433535 is a reply to message #433532] Fri, 17 February 2006 17:59 Go to previous message
Bryan Hunt is currently offline Bryan Hunt
Messages: 346
Registered: July 2009
Senior Member
On 2006-02-17 16:23:43 -0600, Bryan Hunt <bhunt.online@mac.com> said:

> I'm working on a framework and I'd like to persist the domain model
> using EJB 3.0, but this doesn't seem possible. Since the project
> contains a pointer to a specific database, anyone that were to use and
> extend the framework would be forced to use that database
> specification. Am I missing something? Also, does EJB 3.0 handle
> inheritance? Can I create a base class, specify attribute persistance,
> extend it and specify persistence for the attrubutes of the specialized
> class?
>
> Bryan

I think I've found the answers to my questions here:

http://www.javaworld.com/javaworld/jw-08-2005/jw-0815-ejb3.h tml

It appears that you can override the database connection using an XML
deployment descriptor. Part 2 of that article disucsses how to deal
with inheritance. This could be verry cool.

Bryan
Re: Creating a framework using EJB 3.0? [message #573146 is a reply to message #433532] Fri, 17 February 2006 17:59 Go to previous message
Bryan Hunt is currently offline Bryan Hunt
Messages: 346
Registered: July 2009
Senior Member
On 2006-02-17 16:23:43 -0600, Bryan Hunt <bhunt.online@mac.com> said:

> I'm working on a framework and I'd like to persist the domain model
> using EJB 3.0, but this doesn't seem possible. Since the project
> contains a pointer to a specific database, anyone that were to use and
> extend the framework would be forced to use that database
> specification. Am I missing something? Also, does EJB 3.0 handle
> inheritance? Can I create a base class, specify attribute persistance,
> extend it and specify persistence for the attrubutes of the specialized
> class?
>
> Bryan

I think I've found the answers to my questions here:

http://www.javaworld.com/javaworld/jw-08-2005/jw-0815-ejb3.h tml

It appears that you can override the database connection using an XML
deployment descriptor. Part 2 of that article disucsses how to deal
with inheritance. This could be verry cool.

Bryan
Previous Topic:Creating a framework using EJB 3.0?
Next Topic:EJB 3.0 annotations not being recognized in eclipse
Goto Forum:
  


Current Time: Wed Aug 20 12:34:47 EDT 2014

Powered by FUDForum. Page generated in 0.01597 seconds