<!--
$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>
greg stark wrote:
is incorrect usage for two reasons. It 1) assumes the default SecureRandom algorithm will not change and 2) assumes that the supplied seed material is the only source of seed material. This is the likely source of your issues.
2. Using any functionality directly from sun.misc is a bug. Those classes are not for use by programmers. They can be removed at any time or may not even be present on other Java runtimes. And even if the functionality remains it might be renamed. Why shouldn't Oracle rename these class oracle.misc.*?
3. Never use the no-args versions of String.getBytes() and new String(...). The default charset is different on different platforms, so this is just asking for more bugs.
Originally posted by Joseph Sweet:
Hi Friends,
I am wondering if there is a reliable way to get the current Class name and Method name.