NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Splitting JAXB Schema's Across Netbeans RCP Modules?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
MrMasha
Posted via mailing list.





PostPosted: Fri Oct 24, 2008 9:00 am    Post subject: Splitting JAXB Schema's Across Netbeans RCP Modules? Reply with quote

We are looking at making an editor application using a module based plug-in
architecture. In this application an editable object is persisted as XML and
can contain other editable objects by either reference or value. We have
existing JAXB / XSD schema's for all these objects but they were previously
grouped together into a single common package in our legacy application. We
now have to look at how we can split the schema's into their own objects
relevent plug-in module.

Once this is done in order to read these complex XML based objects back in
we need to be able to recognise a foreign XML based object within the
parents XML file and query the central registry for the relevent classes to
convert that piece of the XML to the object then returning control back to
the parent using a commonly recognised interface.

Is there any similar implementations to this already out there(or primitive
example), within the netbeans application itself perhaps? Or does anyone
have any best practice suggestions on how to tackle this, be it through JAXB
or some alternative XML parser.

Thanks,
Craig
--
View this message in context: http://www.nabble.com/Splitting-JAXB-Schema%27s-Across-Netbeans-RCP-Modules--tp20146625p20146625.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Fabrizio Giudici
Posted via mailing list.





PostPosted: Fri Oct 24, 2008 9:23 am    Post subject: Splitting JAXB Schema's Across Netbeans RCP Modules? Reply with quote

MrMasha wrote:
Quote:
We are looking at making an editor application using a module based plug-in
architecture. In this application an editable object is persisted as XML and
can contain other editable objects by either reference or value. We have
existing JAXB / XSD schema's for all these objects but they were previously
grouped together into a single common package in our legacy application. We
now have to look at how we can split the schema's into their own objects
relevent plug-in module.

Once this is done in order to read these complex XML based objects back in
we need to be able to recognise a foreign XML based object within the
parents XML file and query the central registry for the relevent classes to
convert that piece of the XML to the object then returning control back to
the parent using a commonly recognised interface.

Is there any similar implementations to this already out there(or primitive
example), within the netbeans application itself perhaps? Or does anyone
have any best practice suggestions on how to tackle this, be it through JAXB
or some alternative XML parser.

Thanks,
Craig

I have done a similar thing of collecting-merging configuration files
from different modules for persistence.xml from JPA - but I don't know
how similar is to your case, which indeed I bet is more complex than
mine. But perhaps the idea of collecting single chunks of definitions
and merging them into a single file could apply as well.

The links are here:

http://netbeans.dzone.com/news/netbeans-and-jpa-with-multiple
http://netbeans.dzone.com/news/netbeans-jpa-part-two

There were some open problems, but were specifically related to JPA;
also, the posts are from June and the code has been improved in the
meantime. If feel it's of interest for your problem, please ask
questions directly in this mailing list, since it looks as an
appropriate topic).

--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
address-removed - mobile: +39 348.150.6941
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo