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
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
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).
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.