Netscape Enterprise Server 3.5.1 does not support the javax.servlet.ServletConfig.getInitParameters( ) or javax.servlet.ServletConfig.getInitParameterNames( ) methods. To provide the necessary parameter values, you need to replace calls to getInitParameter( ) and getInitParameterNames( ) with hard-coded parameter values in TDSTunnelServlet.java.
To enter the required parameter values in TDSTunnelServlet.java and use TDS tunnelling with Netscape Enterprise Server 3.5.1 on Solaris:
Hard code parameter values in TDSTunnelServlet.java.
Create .class files from the class declarations in TDSTunnelServlet.java.
This should result in the following files:
TDSTunnelServet.class
TdsSession.class
TdsSessionManager.class
Create a directory for the .class files under your Netscape Enterprise Server 3.5.1 (NSE_3.5.1) installation directory, as follows:
mkdir NSE_3.5.1_install_dir/plugins/java/servlets/gateway
Copy the .class files derived from TDSTunnelServlet.java to the directory you just created.
Copy the classes under $JDBC_HOME/classes/com/sybase to NSE_3.5.1_install_dir/docs/com/sybase.
An easy way to do this is to recursively copy everything under $JDBC_HOME/classes to NSE_3.5.1_install_dir/docs, as:
cp -r $JDBC_HOME/classes NSE_3.5.1_install_dir/docs
This copies a number of files and directories that are not under $JDBC_HOME/classes/com/sybase. The extra files and directories are harmless, but take up disk space. You can delete them to reclaim the disk space.
Set the proxy URL to the TDS-tunnelling servlet.
For example, in $JDBC_HOME/sample2/gateway.html, you would edit the proxy parameter to appear as follows:
<param name=proxy value=”http://hostname/servlet/ gateway_name.TDSTunnel_Servlet_name”>
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |