Thanks , That works fine.


----- Original Message ----- 
From: "Jeff Hubbach" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 10:12 PM
Subject: Re: How to bind entityBean's cmp-field attribute with DataBase table' field?


> First, you're going to want to set 2 tags in your orion-application.xml.
> Add these 2 attributes to the <orion-application ...> tag at the top:
> autocreate-tables="false" autodelete-tables="false"
> If you're wondering what these tags do, go to:
> http://www.orionserver.com/docs/orion-application.xml.html
> 
> Now go ahead and deploy your bean by adding an <ejb-module ... /> tag to
> this same file. Once it's deployed, go into your application-deployments
> directory (specified in your server.xml), and dig down the following
> path:
> [application-deployments path]/[application name]/[path you set in the
> ejb-module tag]/
> In this directory, there's an orion-ejb-jar.xml file. Go to this URL, it
> is your friend
> http://www.orionserver.com/docs/orion-ejb-jar.xml.html
> 
> In this file, you specify the mappings of your fields, as well as which
> tablename to map to.
> 
> Now the datasource. In your data-source.xml file, you specified an
> ejb-location. You need to add a resource-ref to that location in your
> ejb-jar.xml in the form:
> 
>          <resource-ref>
>             <res-ref-name>jdbc/DSN</res-ref-name>
>             <res-type>com.evermind.sql.OrionCMTDataSource</res-type>
>             <res-auth>Container</res-auth>
>          </resource-ref>
> 
> That's it :-)
> 
> Jeff.
> 
> jacker54 wrote:
> 
> > Hi, I am transfer my application from weblogic to orion platform. I
> > encounter some problem with entityBean. How can I bind entityBean's
> > cmp-field attribute with DataBase table' field. my ejb_jar.xml
> > is--------------------------------  <entity>
> >    <ejb-name>sequence.SequenceHome</ejb-name>
> >    <home>sequence.SequenceHome</home>
> >    <remote>sequence.Sequence</remote>
> >    <ejb-class>sequence.SequenceBean</ejb-class>
> >    <persistence-type>Container</persistence-type>
> >    <prim-key-class>sequence.SequencePK</prim-key-class>
> >    <reentrant>False</reentrant>
> >    <cmp-field>
> >     <field-name>sequenceId</field-name>
> >    </cmp-field>
> >    <cmp-field>
> >     <field-name>lastNumber</field-name>
> >    </cmp-field>
> >    <cmp-field>
> >     <field-name>minNumber</field-name>
> >    </cmp-field>
> >   </entity>---------------------------------- my Question is how to
> > tell entityBean to use which table?and how to combine cmp-field with
> > database field?and althogh I have specified datasource at
> > data-sources.xml, how to specify method to connect with database, ?
> > any help thanks.
> 
> --
> Jeff Hubbach
> Internet Developer
> New Media Designs, Inc.
> www.nmd.com
> 
> 
> 
> 

Reply via email to