Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Weblogic descriptor issue for 8.1 sp5

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We had our application on wls6.1 and now porting to wls8.1. The decriptor changes have been made. We have a SB with bean managed transactions. SB has transaction.begin and transaction.commit. This SB internally calls a EB for persisting data.
Everything was working fine in 6.1, however when we moved to 8.1 we get warning message as:
<The EJB 'BookingDetailsEB(Application: bis, EJBComponent: bis_ejb.jar)' contains at least one method without an explicit transaction attribute setting. The default transaction attribute of Supports will be used for the following methods: home[create com.dhl.apis.bis.messages.BookingInformationData,com.dhl.apis.bis.messages.ReferenceNumberRequestData,com.dhl.apis.cic.PerformanceLogDetails), findForOtherEvents java.util.Date,java.lang.Integer,com.dhl.apis.cic.PerformanceLogDetails), remove(java.lang.Object), findByExternalReferenceNumber java.util.Date,java.lang.Integer,java.lang.String,java.lang.String,com.dhl.apis.cic.PerformanceLogDetails), findByPrimaryKey com.dhl.apis.bis.dataEntity.BookingDetailsPK), remove(javax.ejb.Handle), findMatchingBooking(java.util.Date,java.lang.Integer,com.dhl.apis.cic.Per
formanceLogDetails)] >

Any idea what additional tags i need to insert or any changes required elsewhere??

Please help
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

in ejb-jar.xml You have to provide such section:


"Supports" is default value. Check out in documentation if this value is correct for Your Bean and Transaction or You have to change it.

Best Regards,
KArol Muszynski
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am struggling to think of a good reason for using the Supports attribute as it can lead to unpredicable results. And you certainly won't want to use this attribute for your remove() method.

If you want a method to be isolated from transactions, then use NotSupported instead.
 
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic