oops! I pasted the files for ejb 1.1 . Not sure if something changed for ejb 2.1 . I think we can ignore the ibm-ejb-ext files for now because they contain ibm extensions. its the ibm-ejb-jar-bnd files which should be of interest. I will try and create a more comprehensive file using RAD or AST. This will contain local, remote ejb references, references to activation spec for mdb, datasource . We could probably use that to generate the schema.
On Thu, Jun 19, 2008 at 8:33 PM, Karan Malhi <[EMAIL PROTECTED]> wrote: > > Or if you can grab the xmi files there's probably a way to convert them to >> xsd. >> > > I think this would be the best approach. Since Attachments are disallowed, > I am giving the file name, its purpose followed by its contents. You should > be able to create the file on the local system and paste the contents in it. > Please keep in mind though that these files do not contain all info they > could contain, so generating a schema out of them may not get us a > comprehensive schema. (Actually, I was able to generate a schema using c# ) > > File Name:- ibm-ejb-jar-bnd.xmi > Contents:- > > ----------------------------------------------------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <ejbbnd:EJBJarBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" > xmlns:ejbbnd="ejbbnd.xmi" xmlns:commonbnd="commonbnd.xmi" > xmlns:ejb="ejb.xmi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmi:id="ejb-jar_ID_Bnd"> > <defaultDatasource xmi:id="ResourceRefBinding_1" jndiName="ivt"> > <defaultAuth xmi:type="commonbnd:BasicAuthData" > xmi:id="BasicAuthData_1"> > <userId xsi:nil="true"/> > <password xsi:nil="true"/> > </defaultAuth> > </defaultDatasource> > <ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/> > <ejbBindings xmi:id="Session_1_Bnd" jndiName="ejb/ivtEJBObject"> > <enterpriseBean xmi:type="ejb:Session" > href="META-INF/ejb-jar.xml#Session_1"/> > </ejbBindings> > </ejbbnd:EJBJarBinding> > > ---------------------------------------------------------------------------------- > > File Name:-ibm-ejb-jar-ext.xmi > Contents:- > > ----------------------------------------------------------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <ejbext:EJBJarExtension xmi:version="2.0" xmlns:xmi=" > http://www.omg.org/XMI" xmlns:ejbext="ejbext.xmi" xmlns:ejb="ejb.xmi" > xmi:id="ejb-jar_ID_Ext"> > <ejbExtensions xmi:type="ejbext:SessionExtension" xmi:id="Session_1_Ext" > timeout="600"> > <enterpriseBean xmi:type="ejb:Session" > href="META-INF/ejb-jar.xml#Session_1"/> > <structure xmi:id="BeanStructure_1" inheritenceRoot="false"/> > <beanCache xmi:id="BeanCache_1" activateAt="ONCE"/> > <internationalization xmi:id="BeanInternationalization_1" > invocationLocale="CALLER"/> > <localTran xmi:id="LocalTran_1" boundary="BEAN_METHOD" > unresolvedAction="ROLLBACK"/> > </ejbExtensions> > <ejbJar href="META-INF/ejb-jar.xml#ejb-jar_ID"/> > </ejbext:EJBJarExtension> > > ------------------------------------------------------------------------------------ > > File Name:- ejb-jar.xml > Contents:- > > ----------------------------------------------------------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise > JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"> > > <ejb-jar id="ejb-jar_ID"> > <description>IVT Stateful Session EJB</description> > <display-name>IVT EJB Module</display-name> > <enterprise-beans> > <session id="Session_1"> > <description>Verify Stateful Session EJB</description> > <display-name>Verification of Stateful Session > EJB</display-name> > <ejb-name>ivtEJBObject</ejb-name> > <home>com.ibm.websphere.ivt.ivtEJB.ivtEJBHome</home> > <remote>com.ibm.websphere.ivt.ivtEJB.ivtEJBObject</remote> > > <ejb-class>com.ibm.websphere.ivt.ivtEJB.ivtEJBSession</ejb-class> > <session-type>Stateful</session-type> > <transaction-type>Container</transaction-type> > </session> > </enterprise-beans> > <assembly-descriptor id="AssemblyDescriptor_1"> > <container-transaction id="MethodTransaction_1"> > <method id="MethodElement_1"> > <ejb-name>ivtEJBObject</ejb-name> > <method-name>*</method-name> > </method> > <trans-attribute>Never</trans-attribute> > </container-transaction> > </assembly-descriptor> > </ejb-jar> > > > ----------------------------------------------------------------------------------- > > > > -- > Karan Singh Malhi -- Karan Singh Malhi
