• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Database and CMP

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic