• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

weblogic 10.3.2 remote-client-timeout not working

 
Greenhorn
Posts: 11
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am unable to make my EJBs timeout with a remote-client-timeout. What am I missing or doing wrong?

I dont think the trans-attribute has an effect on it, but I have tried setting it to NotSupported, Supported, Required....

Here are my ejb-jar.xml and weblogic-ejb-jar.xml files:


<!--
$Source: ejb-jar.xml $
$Revision: 1.14 $
$Author: me $
$Date: 2011/07/19 $

DESCRIPTION:
This file is a deployment decriptor used by my application.

-->
<ejb-jar>
<enterprise-beans>
<!-- EJBS WITH ONLY REMOTE INTERFACES -->
<session>
<ejb-name>MyRemoteInterfaceEJB</ejb-name>
<home>MyPackage.api.MyRemoteInterfaceHome</home>
<remote>MyPackage.api.MyRemoteInterfaceRemote</remote>
<ejb-class>MyPackage.api.MyRemoteInterfaceEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/UserProfile</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.UserProfileLocalHome</local-home>
<local>MyPackage.UserProfileLocal</local>
<ejb-link>UserProfileEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/MyFirst</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.MySecondPackage.MyFirstLocalHome</local-home>
<local>MyPackage.MySecondPackage.MyFirstLocal</local>
<ejb-link>MyFirstEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/Common</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.CommonLocalHome</local-home>
<local>MyPackage.CommonLocal</local>
<ejb-link>CommonEJB</ejb-link>
</ejb-local-ref>
</session>
<!-- EJBS WITH ONLY LOCAL INTERFACES -->
<session>
<ejb-name>BillingEJB</ejb-name>
<local-home>MyPackage.BillingLocalHome</local-home>
<local>MyPackage.BillingLocal</local>
<ejb-class>MyPackage.BillingEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/Billing</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.BillingLocalHome</local-home>
<local>MyPackage.BillingLocal</local>
<ejb-link>BillingEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/UserProfile</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.UserProfileLocalHome</local-home>
<local>MyPackage.UserProfileLocal</local>
<ejb-link>UserProfileEJB</ejb-link>
</ejb-local-ref>
</session>
<session>
<ejb-name>UserProfileEJB</ejb-name>
<local-home>MyPackage.UserProfileLocalHome</local-home>
<local>MyPackage.UserProfileLocal</local>
<ejb-class>MyPackage.UserProfileEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/Billing</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.BillingLocalHome</local-home>
<local>MyPackage.BillingLocal</local>
<ejb-link>BillingEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/UserProfile</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.UserProfileLocalHome</local-home>
<local>MyPackage.UserProfileLocal</local>
<ejb-link>UserProfileEJB</ejb-link>
</ejb-local-ref>
</session>
<session>
<ejb-name>MyFirstEJB</ejb-name>
<local-home>MyPackage.MySecondPackage.MyFirstLocalHome</local-home>
<local>MyPackage.MySecondPackage.MyFirstLocal</local>
<ejb-class>MyPackage.MySecondPackage.MyFirstEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/MyFirst</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.MySecondPackage.MyFirstLocalHome</local-home>
<local>MyPackage.MySecondPackage.MyFirstLocal</local>
<ejb-link>MyFirstEJB</ejb-link>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/UserProfile</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.UserProfileLocalHome</local-home>
<local>MyPackage.UserProfileLocal</local>
<ejb-link>UserProfileEJB</ejb-link>
</ejb-local-ref>
</session>
<session>
<ejb-name>CommonEJB</ejb-name>
<local-home>MyPackage.CommonLocalHome</local-home>
<local>MyPackage.CommonLocal</local>
<ejb-class>MyPackage.CommonEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/MyFirst</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>MyPackage.MySecondPackage.MyFirstLocalHome</local-home>
<local>MyPackage.MySecondPackage.MyFirstLocal</local>
<ejb-link>MyFirstEJB</ejb-link>
</ejb-local-ref>
</session>
</enterprise-beans>
<assembly-descriptor>
<!-- EJBS WITH ONLY REMOTE INTERFACES -->

<container-transaction>
<method>
<ejb-name>MyRemoteInterfaceEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
<!-- EJBS WITH ONLY LOCAL INTERFACES -->
<container-transaction>
<method>
<ejb-name>BillingEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>UserProfileEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>MyFirstEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>CommonEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>




<weblogic-ejb-jar>
<!-- EJBS WITH ONLY REMOTE INTERFACES -->
<weblogic-enterprise-bean>
<ejb-name>MyRemoteInterfaceEJB</ejb-name>
<transaction-descriptor>
<trans-timeout-seconds>1</trans-timeout-seconds>
</transaction-descriptor>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>MyRemote</jndi-name>
<remote-client-timeout>1</remote-client-timeout>
</weblogic-enterprise-bean>
!-- EJBS WITH ONLY LOCAL INTERFACES -->
<weblogic-enterprise-bean>
<ejb-name>BillingEJB</ejb-name>
<local-jndi-name>Billing</local-jndi-name>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>UserProfileEJB</ejb-name>
<local-jndi-name>UserProfile</local-jndi-name>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>DocDeterminationEJB</ejb-name>
<local-jndi-name>DocDetermination</local-jndi-name>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>CommonEJB</ejb-name>
<local-jndi-name>Common</local-jndi-name>
<enable-call-by-reference>True</enable-call-by-reference>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>

 
reply
    Bookmark Topic Watch Topic
  • New Topic