geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cjbly...@apache.org
Subject svn commit: r562210 - /geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/TradeSLSBBean.java
Date Thu, 02 Aug 2007 18:01:28 GMT
Author: cjblythe
Date: Thu Aug  2 11:01:28 2007
New Revision: 562210

URL: http://svn.apache.org/viewvc?view=rev&rev=562210
Log:
DAYTRADER-50 Fix null userid on Home page in EJB 3 mode and add Transaction NOT_SUPPORTED
annotation to resetTrade

Modified:
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/TradeSLSBBean.java

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/TradeSLSBBean.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/TradeSLSBBean.java?view=diff&rev=562210&r1=562209&r2=562210
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/TradeSLSBBean.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/TradeSLSBBean.java
Thu Aug  2 11:01:28 2007
@@ -304,8 +304,8 @@
                     + "\n\t Quote info: " + quote 
                     + "\n\t Holding info: " + holding);
 
-        if (Log.doTrace())
-            Log.trace("Calling TradeAction:orderCompleted from Session EJB using Session
Object");
+        //if (Log.doTrace())
+        //    Log.trace("Calling TradeAction:orderCompleted from Session EJB using Session
Object");
         // FUTURE All getEJBObjects could be local -- need to add local I/F
 
         // commented out following call
@@ -461,6 +461,9 @@
          */
         AccountDataBean account = profile.getAccount();
         account.getProfile();
+        
+        // Added to populate transient field for account
+        account.setProfileID(profile.getUserID());
         return account;
     }
 
@@ -543,13 +546,11 @@
         return account;
     }
 
+    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
     public RunStatsDataBean resetTrade(boolean deleteAll) throws Exception {
         if (Log.doTrace())
             Log.trace("TradeSLSBBean:resetTrade", deleteAll);
 
-        // Clear MDB Statistics
-        MDBStats.getInstance().reset();
-        // Reset Trade
         return new org.apache.geronimo.samples.daytrader.direct.TradeDirect(false).resetTrade(deleteAll);
     }
 



Mime
View raw message