geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cjbly...@apache.org
Subject svn commit: r562200 - in /geronimo/daytrader/trunk/modules: ejb/src/main/java/org/apache/geronimo/samples/daytrader/ ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/ ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/ ejb/src/m...
Date Thu, 02 Aug 2007 17:53:13 GMT
Author: cjblythe
Date: Thu Aug  2 10:53:12 2007
New Revision: 562200

URL: http://svn.apache.org/viewvc?view=rev&rev=562200
Log:
DAYTRADER-49 Add EJB 3 based Session-to-Direct mode

Added:
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
  (with props)
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
  (with props)
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
  (with props)
Modified:
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeAction.java
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeConfig.java
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeServices.java
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DTBroker3MDB.java
    geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/soap/TradeWSAction.java
    geronimo/daytrader/trunk/modules/web/src/main/webapp/WEB-INF/web.xml

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeAction.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeAction.java?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeAction.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeAction.java
Thu Aug  2 10:53:12 2007
@@ -17,7 +17,6 @@
 package org.apache.geronimo.samples.daytrader;
 
 import java.math.BigDecimal;
-import java.rmi.RemoteException;
 import java.util.Collection;
 
 import javax.naming.InitialContext;
@@ -25,6 +24,7 @@
 import org.apache.geronimo.samples.daytrader.direct.TradeDirect;
 import org.apache.geronimo.samples.daytrader.ejb.TradeHome;
 import org.apache.geronimo.samples.daytrader.ejb3.TradeSLSBRemote;
+import org.apache.geronimo.samples.daytrader.ejb3.DirectSLSBRemote;
 import org.apache.geronimo.samples.daytrader.session.TradeJDBCHome;
 import org.apache.geronimo.samples.daytrader.util.FinancialUtils;
 import org.apache.geronimo.samples.daytrader.util.Log;
@@ -96,6 +96,25 @@
                 Log.error("TradeAction:TradeAction() Creation of Trade EJB 3 failed\n" +
e);
                 e.printStackTrace();
             }
+        } else if (TradeConfig.runTimeMode == TradeConfig.SESSION3) {
+            try {
+                if (!(trade instanceof DirectSLSBRemote)) {
+                    DirectSLSBRemote directSLSB = null;
+                    InitialContext context = new InitialContext();
+                    try {
+                        directSLSB = (DirectSLSBRemote) context.lookup("java:comp/env/ejb/DirectSLSBBean");
               
+                    } catch (Exception ex) {
+                        Log.error("TradeAction:createTrade - Lookup of DirectSLSBRemote failed!!!");
+                        directSLSB = (DirectSLSBRemote) context.lookup("DirectSLSBBean");
+                    }
+                
+                    trade = directSLSB;
+                }
+            }
+            catch (Exception e) {
+                Log.error("TradeAction:TradeAction() Creation of Trade SESSION3 failed\n"
+ e);
+                e.printStackTrace();
+            }
         }else if (TradeConfig.runTimeMode == TradeConfig.DIRECT) {
             try {
                 trade = new TradeDirect();
@@ -388,7 +407,7 @@
      * @param userID the account userID to lookup
      * @return User account data in AccountDataBean
      */
-    public AccountDataBean getAccountData(String userID) throws javax.ejb.FinderException,
RemoteException {
+    public AccountDataBean getAccountData(String userID) throws Exception {
         if (Log.doActionTrace())
             Log.trace("TradeAction:getAccountData", userID);
         AccountDataBean accountData;

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeConfig.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeConfig.java?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeConfig.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeConfig.java
Thu Aug  2 10:53:12 2007
@@ -34,11 +34,12 @@
 	/* Trade Runtime Configuration Parameters */
 
 	/* Trade Runtime Mode parameters */
-	public static String[] runTimeModeNames = { "EJB", "Direct", "SessionDirect", "EJB3" };
+	public static String[] runTimeModeNames = { "EJB", "Direct", "SessionDirect", "EJB3", "SessionDirect3"
};
 	public static final int EJB = 0;
 	public static final int DIRECT = 1;
 	public static final int SESSION = 2;
     public static final int EJB3 = 3;
+    public static final int SESSION3 = 4;
 	public static int runTimeMode = DIRECT;
 
 	public static String[] orderProcessingModeNames =

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeServices.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeServices.java?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeServices.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/TradeServices.java
Thu Aug  2 10:53:12 2007
@@ -202,7 +202,7 @@
 	 * @return User account data in AccountDataBean
 	 */	
    public AccountDataBean getAccountData(String userID) 
-   		throws javax.ejb.FinderException, RemoteException;                              
+   		throws Exception, RemoteException;                              
 
 	/**
 	 * Return an AccountProfileDataBean for userID providing the users profile

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/direct/TradeDirect.java
Thu Aug  2 10:53:12 2007
@@ -953,7 +953,7 @@
 	/**
      * @see TradeServices#getAccountData(String)
      */
-	public AccountDataBean getAccountData(String userID) throws RemoteException {
+	public AccountDataBean getAccountData(String userID) throws Exception {
 		try {
 			AccountDataBean accountData = null;
 			Connection conn = null;
@@ -977,7 +977,7 @@
 			}
 			return accountData;
 		} catch (Exception e) {
-			throw new RemoteException(e.getMessage(), e);
+			throw new Exception(e.getMessage(), e);
 		}
 	}
 

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DTBroker3MDB.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DTBroker3MDB.java?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DTBroker3MDB.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DTBroker3MDB.java
Thu Aug  2 10:53:12 2007
@@ -26,6 +26,7 @@
 import javax.jms.MessageListener;
 import javax.jms.TextMessage;
 import org.apache.geronimo.samples.daytrader.TradeServices;
+import org.apache.geronimo.samples.daytrader.direct.TradeDirect;
 import org.apache.geronimo.samples.daytrader.util.Log;
 import org.apache.geronimo.samples.daytrader.util.MDBStats;
 import org.apache.geronimo.samples.daytrader.util.TimerStat;
@@ -141,9 +142,9 @@
     
     private TradeServices getTrade(boolean direct) throws Exception{
         TradeServices trade;
-        /*if (direct)
+        if (direct)
             trade = new TradeDirect();
-        else*/
+        else
             trade = tradeSLSB;
         
         return trade;

Added: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java?view=auto&rev=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
(added)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
Thu Aug  2 10:53:12 2007
@@ -0,0 +1,131 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.geronimo.samples.daytrader.ejb3;
+
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.AccountProfileDataBean;
+import org.apache.geronimo.samples.daytrader.HoldingDataBean;
+import org.apache.geronimo.samples.daytrader.OrderDataBean;
+import org.apache.geronimo.samples.daytrader.QuoteDataBean;
+import org.apache.geronimo.samples.daytrader.RunStatsDataBean;
+import org.apache.geronimo.samples.daytrader.MarketSummaryDataBean;
+import org.apache.geronimo.samples.daytrader.direct.TradeDirect;
+
+import java.math.BigDecimal;
+import java.util.Collection;
+import javax.ejb.*;
+
+
+@Stateless
+@TransactionAttribute(TransactionAttributeType.REQUIRED)
+@TransactionManagement(TransactionManagementType.CONTAINER)
+public class DirectSLSBBean implements DirectSLSBRemote, DirectSLSBLocal {
+
+	public DirectSLSBBean() {
+	}
+
+	public MarketSummaryDataBean getMarketSummary() throws Exception {
+		return (new TradeDirect(true)).getMarketSummary();
+	}
+
+
+	public OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode)
throws Exception {
+		return (new TradeDirect(true)).buy(userID, symbol, quantity, orderProcessingMode);
+	}
+
+	public OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode) throws
Exception {
+		return (new TradeDirect(true)).sell(userID, holdingID, orderProcessingMode);
+	}
+
+	public void queueOrder(Integer orderID, boolean twoPhase) throws Exception {
+		(new TradeDirect(true)).queueOrder(orderID, twoPhase);
+	}
+
+	public OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception {
+		return (new TradeDirect(true)).completeOrder(orderID, twoPhase);
+	}
+
+	public void cancelOrder(Integer orderID, boolean twoPhase) throws Exception {
+		(new TradeDirect(true)).cancelOrder(orderID, twoPhase);
+	}
+
+	public void orderCompleted(String userID, Integer orderID) throws Exception {
+		(new TradeDirect(true)).orderCompleted(userID, orderID);
+	}
+
+	public Collection getOrders(String userID) throws Exception {
+		return (new TradeDirect(true)).getOrders(userID);
+	}
+
+	public Collection getClosedOrders(String userID) throws Exception {
+		return (new TradeDirect(true)).getClosedOrders(userID);
+	}
+
+	public QuoteDataBean createQuote(String symbol, String companyName, BigDecimal price) throws
Exception {
+		return (new TradeDirect(true)).createQuote(symbol, companyName, price);
+	}
+
+	public QuoteDataBean getQuote(String symbol) throws Exception {
+		return (new TradeDirect(true)).getQuote(symbol);
+	}
+
+	public Collection getAllQuotes() throws Exception {
+		return (new TradeDirect(true)).getAllQuotes();
+	}
+
+	public QuoteDataBean updateQuotePriceVolume(String symbol, BigDecimal newPrice, double sharesTraded)
throws Exception {
+		return (new TradeDirect(true)).updateQuotePriceVolume(symbol, newPrice, sharesTraded);
+	}
+
+	public Collection getHoldings(String userID) throws Exception {
+		return (new TradeDirect(true)).getHoldings(userID);
+	}
+
+	public HoldingDataBean getHolding(Integer holdingID) throws Exception {
+		return (new TradeDirect(true)).getHolding(holdingID);
+	}
+
+	public AccountDataBean getAccountData(String userID) throws Exception {
+		return (new TradeDirect(true)).getAccountData(userID);
+	}
+
+	public AccountProfileDataBean getAccountProfileData(String userID) throws Exception {
+		return (new TradeDirect(true)).getAccountProfileData(userID);
+	}
+
+	public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData) throws
Exception {
+		return (new TradeDirect(true)).updateAccountProfile(profileData);
+	}
+
+	public AccountDataBean login(String userID, String password) throws Exception {
+		return (new TradeDirect(true)).login(userID, password);
+	}
+
+	public void logout(String userID) throws Exception {
+		(new TradeDirect(true)).logout(userID);
+	}
+
+	public AccountDataBean register(String userID, String password, String fullname, String
address, String email, String creditcard, BigDecimal openBalance) throws Exception {
+		return (new TradeDirect(true)).register(userID, password, fullname, address, email, creditcard,
openBalance);
+	}
+
+    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
+	public RunStatsDataBean resetTrade(boolean deleteAll) throws Exception {
+		return (new TradeDirect(false)).resetTrade(deleteAll);
+	}
+}

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java?view=auto&rev=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
(added)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
Thu Aug  2 10:53:12 2007
@@ -0,0 +1,26 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.geronimo.samples.daytrader.ejb3;
+
+import javax.ejb.Local;
+import org.apache.geronimo.samples.daytrader.TradeServices;
+
+@Local
+public interface DirectSLSBLocal extends TradeServices {
+}
+

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBLocal.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java?view=auto&rev=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
(added)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
Thu Aug  2 10:53:12 2007
@@ -0,0 +1,26 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.geronimo.samples.daytrader.ejb3;
+
+import javax.ejb.Remote;
+import org.apache.geronimo.samples.daytrader.TradeServices;
+
+@Remote
+public interface DirectSLSBRemote extends TradeServices {
+}
+

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/DirectSLSBRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/soap/TradeWSAction.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/soap/TradeWSAction.java?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/soap/TradeWSAction.java
(original)
+++ geronimo/daytrader/trunk/modules/ejb/src/main/java/org/apache/geronimo/samples/daytrader/soap/TradeWSAction.java
Thu Aug  2 10:53:12 2007
@@ -19,8 +19,6 @@
 import java.math.BigDecimal;
 import java.rmi.RemoteException;
 
-import javax.ejb.FinderException;
-
 import org.apache.geronimo.samples.daytrader.TradeAction;
 import org.apache.geronimo.samples.daytrader.client.ws.AccountDataBean;
 import org.apache.geronimo.samples.daytrader.client.ws.AccountProfileDataBean;
@@ -153,7 +151,7 @@
 	public AccountDataBean getAccountData(String userID) throws RemoteException {
 		try {
             return Convert.convertAccountDataBean(trade.getAccountData(userID));
-        } catch (FinderException e) {
+        } catch (Exception e) {
             throw new RemoteException("", e);
         }
 	}

Modified: geronimo/daytrader/trunk/modules/web/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/web/src/main/webapp/WEB-INF/web.xml?view=diff&rev=562200&r1=562199&r2=562200
==============================================================================
--- geronimo/daytrader/trunk/modules/web/src/main/webapp/WEB-INF/web.xml (original)
+++ geronimo/daytrader/trunk/modules/web/src/main/webapp/WEB-INF/web.xml Thu Aug  2 10:53:12
2007
@@ -828,14 +828,16 @@
         <ejb-link>TradeSLSBBean</ejb-link>
     </ejb-ref>
 	<ejb-ref>
+        <ejb-ref-name>ejb/DirectSLSBBean</ejb-ref-name>
+        <ejb-ref-type>Session</ejb-ref-type>
+        <remote>org.apache.geronimo.samples.daytrader.ejb3.DirectSLSBRemote</remote>
+        <ejb-link>DirectSLSBBean</ejb-link>
+    </ejb-ref>
+	<ejb-ref>
 		<ejb-ref-name>ejb/TradeJDBC</ejb-ref-name>
 		<ejb-ref-type>Session</ejb-ref-type>
-		<home>
-			org.apache.geronimo.samples.daytrader.session.TradeJDBCHome
-		</home>
-		<remote>
-			org.apache.geronimo.samples.daytrader.session.TradeJDBC
-		</remote>
+		<home>org.apache.geronimo.samples.daytrader.session.TradeJDBCHome</home>
+		<remote>org.apache.geronimo.samples.daytrader.session.TradeJDBC</remote>
 		<ejb-link>TradeJDBC</ejb-link>
 	</ejb-ref>
 	<ejb-ref>



Mime
View raw message