thanks a lot Sabastian.. so it seems we dont have a way of doing this independent of classloader at a global scope...
On Mon, Feb 18, 2013 at 2:24 PM, Millies, Sebastian < [email protected]> wrote: > yes, it amounts to the same thing. -- Sebastian > > > > *From:* Blue Diamond [mailto:[email protected]] > *Sent:* Monday, February 18, 2013 7:31 AM > > *To:* [email protected] > *Subject:* Re: SDO type loading per ClassLoader > > > > Hi Sabastian, > > > > Thanks a lot for replying. So, if I understand correctly, you have your > types (XSDs) available in one SCA Contribution and they are imported by > other nodes/jars. Since the import is happening on XSDs, does it mean the > nodes import the XSDs and loads the types for its own classloader? If so, > then it is same as what we are doing right now, loading the XSDs per > classloader to make types available. > > > > Thanks & Regards, > > Anil > > On Tue, Feb 12, 2013 at 2:36 PM, Millies, Sebastian < > [email protected]> wrote: > > Hello there, > > > > I can’t really offer something very specific to your question, because I > have no experience with > > OSGi environments. > > > > However, as far as my SCA components are concerned, I have not been able > to make types available > > globally. Instead, I have one contribution (jar) exporting all the types, > and that is loaded into every node > > I start. The sca-contribution.xml files of every other contribution refer > to that “global” contribution > > by resource imports for the XSD-files, like > > > > <import.resource uri="SDOTypes/user.xsd"/> > > > > and the composites have import statements like > > > > … xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0 … > > <dbsdo:import.sdo location="SDOTypes/user.xsd"/> > > > > Does that help? > > n Sebastian > > > > *From:* Blue Diamond [mailto:[email protected]] > *Sent:* Monday, February 11, 2013 3:00 PM > *To:* [email protected] > *Subject:* Re: SDO type loading per ClassLoader > > > > Any insights? :) > > Really appreciate any help/info on this. > > On Fri, Feb 8, 2013 at 7:50 PM, Blue Diamond <[email protected]> wrote: > > Hi all, > > > > We have been using Tuscany SDO for a while. When we load types using SDO's > XSDHelper it loads the types for the Context ClassLoader. > > Which means, if I am in an OSGi env., each bundle that wants to deal with > types should load the types. > > > > Is there a way I can configure SDO or load types with some options that > makes the types once loaded are available to all ClassLoaders? (something > like global scope). > > > > Thanks & Regards, > > Anil > > > > IDS Scheer Consulting GmbH > Geschäftsführer/Managing Directors: Michael Rehm, Ivo Totev > Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, > Germany - Registergericht/Commercial register: Saarbrücken HRB 19681 > *http://www.ids-scheer-consulting.com* > <http://www.ids-scheer-consulting.com> > > > > IDS Scheer Consulting GmbH > Geschäftsführer/Managing Directors: Michael Rehm, Ivo Totev > Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, > Germany - Registergericht/Commercial register: Saarbrücken HRB 19681 > *http://www.ids-scheer-consulting.com* > <http://www.ids-scheer-consulting.com> >
