geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1059736 - in /geronimo/samples/trunk/samples/osgi/showmethemoney: readme.txt showmethemoney-web/src/main/java/org/apache/geronimo/samples/osgi/showmethemoney/web/ShowMoneyServlet.java
Date Mon, 17 Jan 2011 03:09:31 GMT
Author: violalu
Date: Mon Jan 17 03:09:31 2011
New Revision: 1059736

URL: http://svn.apache.org/viewvc?rev=1059736&view=rev
Log:
GERONIMO-5715
Remove sql query until derby db porlet is ready.

Modified:
    geronimo/samples/trunk/samples/osgi/showmethemoney/readme.txt
    geronimo/samples/trunk/samples/osgi/showmethemoney/showmethemoney-web/src/main/java/org/apache/geronimo/samples/osgi/showmethemoney/web/ShowMoneyServlet.java

Modified: geronimo/samples/trunk/samples/osgi/showmethemoney/readme.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/osgi/showmethemoney/readme.txt?rev=1059736&r1=1059735&r2=1059736&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/osgi/showmethemoney/readme.txt (original)
+++ geronimo/samples/trunk/samples/osgi/showmethemoney/readme.txt Mon Jan 17 03:09:31 2011
@@ -30,9 +30,8 @@ INSTALL
         geronimo>install file:/D:/samplesTrunk/samples/osgi/showmethemoney/showmethemoney-server/target/showmethemoney-server-3.0-SNAPSHOT.jar
          geronimo>install file:/D:/samplesTrunk/samples/osgi/showmethemoney/showmethemoney-ds/target/showmethemoney-ds-3.0-SNAPSHOT.jar
   
- 3. Run sql under sql/moneydb.sql  against derby database moneydb
          
- 4. Deploy web app using deployer tool.
+ 3. Deploy web app using deployer tool.
        cd %Geronimo_Home%/bin
        deploy.[bat|sh] deploy D:/samplesTrunk/samples/osgi/showmethemoney/showmethemoney-web/showmethemoney-web-3.0-SNAPSHOT.war
   Access http://[IP_Address]:8080/showmoney/

Modified: geronimo/samples/trunk/samples/osgi/showmethemoney/showmethemoney-web/src/main/java/org/apache/geronimo/samples/osgi/showmethemoney/web/ShowMoneyServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/osgi/showmethemoney/showmethemoney-web/src/main/java/org/apache/geronimo/samples/osgi/showmethemoney/web/ShowMoneyServlet.java?rev=1059736&r1=1059735&r2=1059736&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/osgi/showmethemoney/showmethemoney-web/src/main/java/org/apache/geronimo/samples/osgi/showmethemoney/web/ShowMoneyServlet.java
(original)
+++ geronimo/samples/trunk/samples/osgi/showmethemoney/showmethemoney-web/src/main/java/org/apache/geronimo/samples/osgi/showmethemoney/web/ShowMoneyServlet.java
Mon Jan 17 03:09:31 2011
@@ -77,17 +77,19 @@ public class ShowMoneyServlet extends Ht
            ShowMoneyService sm = (ShowMoneyService)ctx2.lookup("org.apache.geronimo.samples.osgi.showmethemoney.api.ShowMoneyService");
            pw.println(sm.showmoney()); 
            
+           //Just Show you how to use datasource service, currently geronimo 3.0 has no derby
db porlet, when this porlet is enabled,should
+           //update here.
            dataSource = (DataSource)ServiceUtil.getOSGIService(DataSource.class.getName(),"(osgi.jndi.service.name=jdbc/NoTxMoneyDataSource)");
            
            try {
 conn = dataSource.getConnection();
-//conn.setAutoCommit(false);
+/*
 stmt = conn.prepareStatement("select * from customer");
 ResultSet rs = stmt.executeQuery();
 
 while (rs.next()){
 	pw.println(rs.getString("name"));
-} 
+} */
 
 } catch (SQLException e) {
 // TODO Auto-generated catch block



Mime
View raw message