aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes weblogic 10.3.2  remote-client-timeout not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "weblogic 10.3.2  remote-client-timeout not working" Watch "weblogic 10.3.2  remote-client-timeout not working" New topic
Author

weblogic 10.3.2 remote-client-timeout not working

Wb Moore
Greenhorn

Joined: Sep 13, 2007
Posts: 9
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weblogic 10.3.2 remote-client-timeout not working
 
Similar Threads
JMS subscription problem
Problem deploying ejbs in weblogic
EJB 1.1 Migration from WebLogic 5 to WebLogic 10
weblogic 8 to 10 migration..ErrorCouldnot locate bean ejb-jar.xml with EJB1.1
clientgen WSBuildException Could not find ejbjar for component