This content has been marked as final. Show 1 reply
For the three questions you raised:
1. is this the right way to implement this architecture using servlet?
given berkeley dbxml is an embedded db, can it cope with multi user
access the document and edit at the same time?
Yes, you should be able to DBXML Java API through a servlet
(DBXML is just a library) and DBXML supports ACID transactions so
you should be able to access and update the document
at the same time.
2. design preference question actually,on relational db,
commonly the employee info will be stored in few tables
like "emptable","empaddresstable" referenced by foreign key.
Question is do i stored it all under the same xmldocument
or in another container with separate xml? or stored the
referenced data (eg "empaddresstable") in relational db
and all emp info as xmldocument?
You could create two databases one for emp and one
for empaddress and store the individual xmldocuments into them.
3. is it possible to control certain node under xml?
(eg. let's say the xml element "A" can only allow 2
child element, attempt to insert/append more than 2 child
element underneath will throw an exception) can it be
done with xml schema definition?
If by this question you are asking if DBXML supports
XQuery please take a look at the documentation at: