Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor weblogic app lifecycle listener quickfix for code readabilit…
…y. Cleaned up imports. Added test files for weblogic lazy DB transactions.
- Loading branch information
John Steele
committed
Apr 11, 2017
1 parent
8167e04
commit 6360da3
Showing
5 changed files
with
128 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd"> | ||
<weblogic-enterprise-bean> | ||
<stateful-session-descriptor> | ||
<allow-concurrent-calls>true</allow-concurrent-calls> | ||
</stateful-session-descriptor> | ||
</weblogic-enterprise-bean> | ||
<weblogic-enterprise-bean> | ||
<ejb-name>ItemLookupBean</ejb-name> | ||
<stateless-session-descriptor> | ||
</stateless-session-descriptor> | ||
<transaction-descriptor> | ||
<trans-timeout-seconds>180</trans-timeout-seconds> | ||
</transaction-descriptor> | ||
<enable-call-by-reference>true</enable-call-by-reference> | ||
<run-as-principal-name>Admin</run-as-principal-name> | ||
<jndi-name>ejb/ItemLookupBean</jndi-name> | ||
<entity-descriptor> | ||
<persistence> | ||
<delay-updates-until-end-of-tx>True</delay-updates-until-end-of-tx> | ||
</persistence> | ||
</entity-descriptor> | ||
</weblogic-enterprise-bean> | ||
<weblogic-enterprise-bean> | ||
<ejb-name>ProductCatalogBean</ejb-name> | ||
<stateless-session-descriptor> | ||
</stateless-session-descriptor> | ||
<transaction-descriptor> | ||
<trans-timeout-seconds>180</trans-timeout-seconds> | ||
</transaction-descriptor> | ||
<enable-call-by-reference>true</enable-call-by-reference> | ||
<run-as-principal-name>Admin</run-as-principal-name> | ||
<jndi-name>ejb/ProductCatalogBean</jndi-name> | ||
</weblogic-enterprise-bean> | ||
<weblogic-enterprise-bean> | ||
<ejb-name>LogEventSubscriber</ejb-name> | ||
<message-driven-descriptor> | ||
<destination-jndi-name>jms/LogEventQueue</destination-jndi-name> | ||
</message-driven-descriptor> | ||
<run-as-principal-name>admin_user</run-as-principal-name> | ||
</weblogic-enterprise-bean> | ||
<security-role-assignment> | ||
<role-name>acme_user</role-name> | ||
<principal-name>AnvilUser</principal-name> | ||
<principal-name>Admin</principal-name> | ||
</security-role-assignment> | ||
<!-- http://docs.oracle.com/cd/E15051_01/wls/docs103/ejb/DDreference-ejb-jar.html#wp1114299 --> | ||
<idempotent-methods> | ||
<method> | ||
<ejb-name>ItemLookupBean</ejb-name> | ||
<method-name>lookupItem</method-name> | ||
<method-params> | ||
<method-param>java.lang.Long</method-param> | ||
</method-params> | ||
</method> | ||
<method> | ||
<ejb-name>ProductCatalogBean</ejb-name> | ||
<method-name>populateCatalog</method-name> | ||
</method> | ||
</idempotent-methods> | ||
</weblogic-ejb-jar> |
62 changes: 62 additions & 0 deletions
62
test-files/summit-demo-test/test/transactions/weblogic-ejb-jar.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd"> | ||
<weblogic-enterprise-bean> | ||
<stateful-session-descriptor> | ||
<allow-concurrent-calls>true</allow-concurrent-calls> | ||
</stateful-session-descriptor> | ||
</weblogic-enterprise-bean> | ||
<weblogic-enterprise-bean> | ||
<ejb-name>ItemLookupBean</ejb-name> | ||
<stateless-session-descriptor> | ||
</stateless-session-descriptor> | ||
<transaction-descriptor> | ||
<trans-timeout-seconds>180</trans-timeout-seconds> | ||
</transaction-descriptor> | ||
<enable-call-by-reference>true</enable-call-by-reference> | ||
<run-as-principal-name>Admin</run-as-principal-name> | ||
<jndi-name>ejb/ItemLookupBean</jndi-name> | ||
<entity-descriptor> | ||
<persistence> | ||
<delay-updates-until-end-of-tx>True</delay-updates-until-end-of-tx> | ||
</persistence> | ||
</entity-descriptor> | ||
</weblogic-enterprise-bean> | ||
<weblogic-enterprise-bean> | ||
<ejb-name>ProductCatalogBean</ejb-name> | ||
<stateless-session-descriptor> | ||
</stateless-session-descriptor> | ||
<transaction-descriptor> | ||
<trans-timeout-seconds>180</trans-timeout-seconds> | ||
</transaction-descriptor> | ||
<enable-call-by-reference>true</enable-call-by-reference> | ||
<run-as-principal-name>Admin</run-as-principal-name> | ||
<jndi-name>ejb/ProductCatalogBean</jndi-name> | ||
</weblogic-enterprise-bean> | ||
<weblogic-enterprise-bean> | ||
<ejb-name>LogEventSubscriber</ejb-name> | ||
<message-driven-descriptor> | ||
<destination-jndi-name>jms/LogEventQueue</destination-jndi-name> | ||
</message-driven-descriptor> | ||
<run-as-principal-name>admin_user</run-as-principal-name> | ||
</weblogic-enterprise-bean> | ||
<security-role-assignment> | ||
<role-name>acme_user</role-name> | ||
<principal-name>AnvilUser</principal-name> | ||
<principal-name>Admin</principal-name> | ||
</security-role-assignment> | ||
<!-- http://docs.oracle.com/cd/E15051_01/wls/docs103/ejb/DDreference-ejb-jar.html#wp1114299 --> | ||
<idempotent-methods> | ||
<method> | ||
<ejb-name>ItemLookupBean</ejb-name> | ||
<method-name>lookupItem</method-name> | ||
<method-params> | ||
<method-param>java.lang.Long</method-param> | ||
</method-params> | ||
</method> | ||
<method> | ||
<ejb-name>ProductCatalogBean</ejb-name> | ||
<method-name>populateCatalog</method-name> | ||
</method> | ||
</idempotent-methods> | ||
</weblogic-ejb-jar> |