• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

weblogic-ejb-jar.xml

 
Ranch Hand
Posts: 644
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all
I am getting an ejbc error in the weblogic-ejb-jar.xml file. i have cut & paste the contents below.can any body tell me what is wrong in there?
the error is :
error parsing the content of element type weblogic-eb-jar must match ....at line 21

<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>statelessSession</ejb-name>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>ddeDataSource</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>dynamicDistributionEngine</jndi-name>
<transaction-isolation>
<isolation-level>ReadUncommitted</isolation-level>
<method>
<description>for the provisioning purpose</description>
<ejb-name>statelessSession</ejb-name>
<method-intf>Remote</method-intf>
<method-name>distributeMsg</method-name>
<method-params>int, Criteria, int, int, int, String</method-params>
</method>
</transaction-isolation>
</weblogic-enterprise-bean>

<weblogic-enterprise-bean>
<ejb-name>Trans</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>ddeDataSource</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>DDE-TransHome</jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>TransLog</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>ddeDataSource</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>DDE-TransLogHome</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>

thanks in advance..
trupti
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i think u have put the tags in wrong file miss.
<transaction-isolation>
<isolation-level>ReadUncommitted</isolation-level>
<method>
<description>for the provisioning purpose</description>
<ejb-name>statelessSession</ejb-name>
<method-intf>Remote</method-intf>
<method-name>distributeMsg</method-name>
<method-params>int, Criteria, int, int, int, String</method-params>
</method>
</transaction-isolation>
remove this part and for the purpose of giving the trascation attribute give
<container-transaction>
<method>
<ejb-name>RegistrationTxn</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
in ejb-jar.xml
so we never provide any transaction related things in weblogic-ejb-jar.xml
these transaction isolations are actually used for how the bo's interact with the database hence they are put in rdbms.xml file

i guess iam correct
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the WebLogoc forum.
 
trupti nigam
Ranch Hand
Posts: 644
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi amit..
if i am not wrong, you have mistaken the tansaction attribute to isolation level ..
the isolation level element is specified in weblogic-ejb-jar file only.
see the below link...
http://edocs.bea.com/wls/docs61/ejb/reference.html#1072573
I am not sure where is the exact place that we have to put this element type.
I think i am getting the error because i have not placed it at proper location..
if anyone can figure it out it will be a greate help for me..
thanks a lot..
trupti
 
mooooooo ..... tiny ad ....
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic