Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Database and CMP  RSS feed

 
Ricardo Taniguchi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!
I'm working on a EJB's project using EJB 2.0 / CMP and met with the following doubt:
Is it possible for an Entity EJB CM use a XML file as a Database? Or it only works with RDBMS?
Thanks in advance!
Ricardo
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose an Application Server could support this feature if they really wanted to. However, to my knowledge there are non that do.
 
john guthrie
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which xml database are you using, if i might inquire?
 
Ricardo Taniguchi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for everyone's fast response!
Actually this "database" is really an output from a third-party software.
As far as I can see, this software throws a formatted XML that I can work like an DB.
Is it still possible to map this file as an DB for CMP?
Sincerely
Ricardo
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ricardo, I haven't heard of an application server providing a CMP-to-XML mapping tool. Although this doesn't mean there wouldn't be such a tool, I'd suggest you to start looking for other solutions (such as writing a BMP for mapping between your domain objects and the XML file).
 
Ricardo Taniguchi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse,
I agree with your point about BMP. However, it's a very daunting work to be done. There are about 20 "tables" that I'll need to map as classes and there are also their relationships. I'll try another tool like Hibernate to do this work...
Thanks!
Ricardo
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!