Index: branches/dev/WEB-INF/src/com/showcase/util/BaseDAO.java =================================================================== diff -u -r154 -r204 --- branches/dev/WEB-INF/src/com/showcase/util/BaseDAO.java (.../BaseDAO.java) (revision 154) +++ branches/dev/WEB-INF/src/com/showcase/util/BaseDAO.java (.../BaseDAO.java) (revision 204) @@ -26,7 +26,7 @@ Context envCtx = (Context) ctx.lookup("java:comp/env"); //Look up our data source - DataSource ds = (DataSource) envCtx.lookup("jdbc"); + DataSource ds = (DataSource) envCtx.lookup("jdbc/showcase"); if (ds != null) { conn = ds.getConnection(); Index: branches/dev/WEB-INF/src/com/showcase/mainframe/general/JMainframeImpl.java =================================================================== diff -u -r154 -r204 --- branches/dev/WEB-INF/src/com/showcase/mainframe/general/JMainframeImpl.java (.../JMainframeImpl.java) (revision 154) +++ branches/dev/WEB-INF/src/com/showcase/mainframe/general/JMainframeImpl.java (.../JMainframeImpl.java) (revision 204) @@ -1,38 +1,34 @@ package com.showcase.mainframe.general; -import java.io.*; -import java.net.*; -import java.util.*; -import java.sql.*; -import java.text.SimpleDateFormat; -import java.text.Format; -//import com.sybase.jaguar.sql.*; -//import com.sybase.jaguar.server.*; -//import com.sybase.jaguar.jcm.*; -//import com.sybase.jaguar.util.*; +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.net.Socket; +import java.net.SocketException; +import java.net.UnknownHostException; +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.text.Format; +import java.text.SimpleDateFormat; +import java.util.StringTokenizer; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import com.showcase.util.JNDILookup; + public class JMainframeImpl{ private static final Log log = LogFactory.getLog(JMainframeImpl.class); - //For connecting to mainframe from inside + String s_ip; + int i_port; - //String s_ip_test = "10.2.40.22"; - //int i_port_test = 10010; - - //String s_ip = "10.2.40.22"; - //int i_port = 10010; - //For connecting to mainframe from lemansnet - String s_ip = "192.168.0.11"; - //String s_ip = "192.168.0.11"; - int i_port = 10000; - //int i_port = 10000; - //10000 is production port , 10010 is test port - String s_debugfile = "JMainframeImpl.dbg"; String s_msg = ""; String s_new = ""; @@ -51,32 +47,11 @@ // // get system settings from props file // - try - { - //InputStream in_props; - //in_props = new FileInputStream("JMainframeImpl.props"); - //Properties props = new Properties(); - //props.load(in_props); - //s_ip = props.getProperty("IP"); - - //i_port = Integer.parseInt(props.getProperty("Port")); - //String s_debug = props.getProperty("Debug"); - - - ClassLoader loader = Thread.currentThread().getContextClassLoader(); - - //Use context classloader to read ldap.properties - InputStream iStream = loader.getResourceAsStream("mainframe.properties"); - Properties props = new Properties(); - //Load the stream into the properties object directly - props.load(iStream); - - s_ip=props.getProperty("IP"); - i_port=Integer.parseInt(props.getProperty("Port")); - -// i_port=Integer.parseInt("10000"); - - String s_debug = "y"; + try { + i_port = Integer.parseInt((String)JNDILookup.lookup("mf_port")); + s_ip = (String)JNDILookup.lookup("mf_ip"); + String s_debug = (String)JNDILookup.lookup("mf_debug"); + if (s_debug.equals("y")) { //s_debugfile = props.getProperty("DebugFile"); Fisheye: Tag 204 refers to a dead (removed) revision in file `branches/dev/WEB-INF/src/mainframe.properties'. Fisheye: No comparison available. Pass `N' to diff? Index: branches/dev/WEB-INF/web.xml =================================================================== diff -u -r154 -r204 --- branches/dev/WEB-INF/web.xml (.../web.xml) (revision 154) +++ branches/dev/WEB-INF/web.xml (.../web.xml) (revision 204) @@ -208,7 +208,7 @@ DB Connection - jdbc + jdbc/showcase javax.sql.DataSource Container Fisheye: Tag 204 refers to a dead (removed) revision in file `branches/dev/WEB-INF/src/mainframe.production.properties'. Fisheye: No comparison available. Pass `N' to diff? Index: branches/dev/documentation/notes.txt =================================================================== diff -u -r154 -r204 --- branches/dev/documentation/notes.txt (.../notes.txt) (revision 154) +++ branches/dev/documentation/notes.txt (.../notes.txt) (revision 204) @@ -17,7 +17,7 @@ make sure that the first line doesn't close itself (singleton). - T getObject(String columnLabel, Class type) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + /** * Not Implemented ! * @see java.sql.ResultSet @@ -742,6 +751,7 @@ { throw new SQLException("getObject() is not implemented"); } + /** * Not Implemented ! * @see java.sql.ResultSet @@ -750,6 +760,11 @@ { throw new SQLException("getObject() is not implemented"); } + + public T getObject(int columnIndex, Class type) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + /** * Not Implemented ! * @see java.sql.ResultSet @@ -2055,5 +2070,53 @@ { throw new SQLException("This is not implemented"); } + + public RowId getRowId(int columnIndex) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public RowId getRowId(String columnLabel) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public void updateRowId(int columnIndex, RowId x) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public void updateRowId(String columnLabel, RowId x) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public void updateNClob(int columnIndex, NClob nClob) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public void updateNClob(String columnLabel, NClob nClob) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public NClob getNClob(int columnIndex) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public NClob getNClob(String columnLabel) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public SQLXML getSQLXML(int columnIndex) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public SQLXML getSQLXML(String columnLabel) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } -} \ No newline at end of file +} Index: branches/dev/deploy/build.xml =================================================================== diff -u -r154 -r204 --- branches/dev/deploy/build.xml (.../build.xml) (revision 154) +++ branches/dev/deploy/build.xml (.../build.xml) (revision 204) @@ -56,15 +56,14 @@ - + - @@ -76,7 +75,6 @@ - @@ -133,7 +131,6 @@ - Index: branches/dev/WEB-INF/lib/log4j-1.2.8.jar =================================================================== diff -u -r154 -r204 Binary files differ