Advertisement
Advertisement
| 09.18.2008 at 11:04PM PDT, ID: 23744984 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: |
package jf_prj_test;
import java.sql.*;
import java.lang.*;
public class jcdFileXfer
{
public com.stc.codegen.logger.Logger logger;
public com.stc.codegen.alerter.Alerter alerter;
public com.stc.codegen.util.CollaborationContext collabContext;
public com.stc.codegen.util.TypeConverter typeConverter;
public void receive( com.stc.connector.appconn.file.FileTextMessage input, com.stc.connector.appconn.file.FileApplication FileClient_1 )
throws Throwable
{
FileClient_1.setText( input.getText() );
FileClient_1.write();
try {
System.out.println( "inside the try" );
// java.sql.DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
System.out.println( "after class for name statement");
String connectionUrl = "jdbc:microsoft:sqlserver://serverIP:1433;" +
"databaseName=******;user=******;password=******;";
Connection con = java.sql.DriverManager.getConnection(connectionUrl);
System.out.println( "after connection" );
// Statement stmt = conn.createStatement();
// DatabaseMetaData meta = conn.getMetaData();
//if (conn != null) {
//// System.out.println();
// System.out.println( "Successfully connected" );
// System.out.println();
// Meta data
// System.out.println( "\nDriver Information" );
// System.out.println( "Driver Name: " + meta.getDriverName() );
// System.out.println( "Driver Version: " + meta.getDriverVersion() );
// System.out.println( "\nDatabase Information " );
// System.out.println( "Database Name: " + meta.getDatabaseProductName() );
// System.out.println( "Database Version: " + meta.getDatabaseProductVersion() );
// }
} catch ( Exception e ) {
System.out.println( "ERROR: " + e.getMessage() );
}
}
}
|