Re: How to bind entityBean's cmp-field attribute with DataBase table' field?

2001-07-20 Thread jacker54

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-namejdbc/DSN/res-ref-name
 res-typecom.evermind.sql.OrionCMTDataSource/res-type
 res-authContainer/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-namesequence.SequenceHome/ejb-name
 homesequence.SequenceHome/home
 remotesequence.Sequence/remote
 ejb-classsequence.SequenceBean/ejb-class
 persistence-typeContainer/persistence-type
 prim-key-classsequence.SequencePK/prim-key-class
 reentrantFalse/reentrant
 cmp-field
  field-namesequenceId/field-name
 /cmp-field
 cmp-field
  field-namelastNumber/field-name
 /cmp-field
 cmp-field
  field-nameminNumber/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
 
 
 
 




Trouble with entity-bean (CMP) and session Bean

2001-07-06 Thread jacker54



I have encounter such problem.

 I am converting my product from weblogic to 
orion platform.

 my project do some database update 
operation through both entity-bean and session-bean.
at weblogic, there is no problem. 

 but at orion platform. I found entity-bean 
has old data.
for examples:
step (1) entity-bean update data to ""
step (2) session-bean update same data to ""
step (3) I use entity-bean find method. and get information. I 
hope to get "", not ""
but in fact I got ""

 I know we had better not use session-bean 
to update database at this case.
but we have so many such case in our product. 

 Any solution to tell entity-bean to get 
newest info from database. Maybe weblogic do it like this.

Any help will be appreciated.

-- 
jack zhang 
--
 




How to bind entityBean's cmp-field attribute with DataBase table' field?

2001-06-27 Thread jacker54



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 

entityejb-namesequence.SequenceHome/ejb-namehomesequence.SequenceHome/homeremotesequence.Sequence/remoteejb-classsequence.SequenceBean/ejb-classpersistence-typeContainer/persistence-typeprim-key-classsequence.SequencePK/prim-key-classreentrantFalse/reentrantcmp-fieldfield-namesequenceId/field-name/cmp-fieldcmp-fieldfield-namelastNumber/field-name/cmp-fieldcmp-fieldfield-nameminNumber/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.