Skip to main content


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 22:23 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
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 22:59 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
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 22:59 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
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:Dali M1 Iteration 1 build available for download
Next Topic:EJB 3.0 annotations not being recognized in eclipse
Goto Forum:
  


Current Time: Tue Mar 19 08:02:54 GMT 2024

Powered by FUDForum. Page generated in 0.02685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top