Hi,
Thanks for the reply.
I could deploy successfully one entity bean.
I have one more question.
How can i write a query expression for findByMIP(String s1,String s2,String
s3).

Where can i get information on query expression to give for finder methods?

Regards
Rama Rao


----- Original Message -----
From: Kimpton,C (Chris) <[EMAIL PROTECTED]>
To: 'jBoss' <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:42 PM
Subject: RE: [jBoss-User] ORACLE - CMP Problems


> Hi,
>
> >
> > Hi,
> > Thanks for the immediate reply.
> > Yes Oracle data source has started successfully.
> > But when i try to deploy the bean with jaws.xml and jboss.xml
> > written by me
> > it is giving error. (It is unable deploy saying that no VALID
> > deployment
> > Descriptor found).
>
> Sounds like the file is not valid - are you missing a closing element tag
or
> something?
>
> >
> > Can u send me one sample jboss.xml and jaws.xml(written for ORACLE)?
>
> Here is what I use;
>
> ejb-jar.xml
>
> <ejb-jar>
> <display-name>blah blah blah</display-name>
> <enterprise-beans>
> <entity>
> <description>Models the status of an
> action</description>
> <ejb-name>ActionStatusBean</ejb-name>
>
> <home>com.rabobank.rbi.crm.entity.ActionStatusHome</home>
>
> <remote>com.rabobank.rbi.crm.entity.ActionStatus</remote>
>
> <ejb-class>com.rabobank.rbi.crm.entity.ActionStatusBean</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>java.lang.String</prim-key-class>
> <reentrant>False</reentrant>
> <cmp-field>
> <field-name>actionStatusId</field-name>
> </cmp-field>
> <cmp-field>
> <field-name>statusAction</field-name>
> </cmp-field>
> <cmp-field>
> <field-name>lockVersion</field-name>
> </cmp-field>
> <primkey-field>actionStatusId</primkey-field>
> </entity>
>
> <!-- snip - more of the same -->
>
> <session>
> <description>Models access to static info, such as
> sectors</description>
> <ejb-name>StaticDataBean</ejb-name>
>
> <home>com.rabobank.rbi.crm.session.StaticDataHome</home>
>
> <remote>com.rabobank.rbi.crm.session.StaticData</remote>
>
> <ejb-class>com.rabobank.rbi.crm.session.StaticDataBean</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Container</transaction-type>
> </session>
> <session>
> <description>Models access to core CRM
> data</description>
> <ejb-name>CRMManagerBean</ejb-name>
>
> <home>com.rabobank.rbi.crm.session.CRMManagerHome</home>
>
> <remote>com.rabobank.rbi.crm.session.CRMManager</remote>
>
> <ejb-class>com.rabobank.rbi.crm.session.CRMManagerBean</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Container</transaction-type>
> </session>
> </enterprise-beans>
> <assembly-descriptor>
> <container-transaction>
> <method>
> <ejb-name>StaticDataBean</ejb-name>
> <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
> <container-transaction>
> <method>
> <ejb-name>CRMManagerBean</ejb-name>
> <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
> </assembly-descriptor>
> </ejb-jar>
>
>
>
> #####################################################################
>
> jboss.xml
>
>
> <?xml version="1.0"?>
> <jboss>
> <secure>false</secure>
> <container-configurations/>
> <resource-managers/>
> <enterprise-beans>
> <session>
> <ejb-name>StaticDataBean</ejb-name>
> <jndi-name>rbi/crm/StaticDataBean</jndi-name>
> <configuration-name/>
> </session>
> <session>
> <ejb-name>CRMManagerBean</ejb-name>
> <jndi-name>rbi/crm/CRMManagerBean</jndi-name>
> <configuration-name/>
> </session>
> <entity>
> <ejb-name>ProductTypeBean</ejb-name>
> <jndi-name>rbi/crm/ProductTypeBean</jndi-name>
> <configuration-name/>
> </entity>
>
> <!-- snip - more of the same -->
>
> </enterprise-beans>
> </jboss>
>
>
>
>
> #####################################################################
>
> jaws.xml
>
>
>
> <?xml version="1.0"?>
>
> <jaws>
>
>   <datasource>OracleDS</datasource>
>   <type-mapping>Oracle8</type-mapping>
>
>   <default-entity>
>         <create-table>false</create-table>
>         <remove-table>false</remove-table>
>         <tuned-updates>true</tuned-updates>
>         <read-only>false</read-only>
>   </default-entity>
>
>   <enterprise-beans>
>
>     <entity>
>       <ejb-name>CompanyBean</ejb-name>
>       <finder>
>         <name>findWithCompanyNameLike</name>
>         <query>upper(companyName) like '%'||upper({0})||'%'</query>
>         <order>companyName</order>
>       </finder>
>     </entity>
>
>     <entity>
>       <ejb-name>ContactBean</ejb-name>
>       <finder>
>         <name>findWithContactNameLike</name>
>         <query>upper(name) like '%'||upper({0})||'%'</query>
>         <order>name</order>
>       </finder>
>     </entity>
>
>   </enterprise-beans>
>
> </jaws>
>
>
>
> NOTE: You'll find no table/column mappings in my jaws.xml cos I am lazy
and
> the db is new - so I named the table/columns the same in the db as the
> classes/attributes.
>
>
>
> Hope this helps.
> Chris
>
>
============================================================================
====================
> This electronic message (email) and any attachments to it are subject to
copyright and are sent for the personal attention of the addressee. Although
you may be the named recipient, it may become apparent that this email and
its contents are not intended for you and an addressing error has been made.
This email may include information that is legally privileged and exempt
from disclosure. If you have received this email in error, please advise us
immediately and delete this email and any attachments from your computer
system.Rabobank International is the trading name of Coöperatieve Centrale
Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands.
Registered with the Registrar of Companies for England & Wales No. BR002630
and regulated by the SFA for the conduct of investment business in the UK.
>
> The presence of this footnote also confirms that this email has been
automatically checked by Rabobank International for the presence of computer
viruses prior to it being sent, however, no guarantee is given or implied
that this email is virus free upon delivery.
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to