In a) you should be using commonj.sdo.DataGraph (implementation class org.apache.tuscany.sdo.impl.DataGraphImpl) because org.eclipse.emf.ecore.sdo.EDataGraph is a specialized interface in the SDO 1 implementation at Eclipse that isn't supported in Tuscany. (if you have both available, it sounds like you're somehow running both SDO 1 and SDO 2 concurrently in your environment.)
That aside, you should be able to use static classes in the EJB method, as long as they've been registered (e.g., StaticFactory.register() was called for the EJB scope). Frank. Gary R Martin <[EMAIL PROTECTED]> wrote on 11/27/2007 09:40:34 AM: > By design (with any version of SDO and Tuscany Java implementation), > > should it be possible to generate "static" SDO classes from an .xsd, and > then: > > a) use the generated classes to create an: > org.eclipse.emf.ecore.sdo.EDataGraph > b)call a method on the remote interface of an ejb that takes that > EDataGraph as its only arguement > c)use the *static* generated SDO classes to access the SDOs in the > EDataGraph > > I've done a) and b) and can use the dynamic SDO API in my EJB method, > but, I've yet to figure out how (or even if it should be possible by > design) > to use the generated "static" SDO classes in my EJB method. > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
