search close

Installing the Java Module on Weblogic

access_time Updated Sep 21, 2021

The Signal Sciences Java module can easily be deployed on WebLogic servers.

Compatibility

The Signal Sciences Java module is compatible with WebLogic version 12c (12.2.1) and higher.

Installation

To deploy the Signal Sciences Java module on Weblogic servers, you will first need to deploy add it to your application as a servlet filter.

Then, deploy your application to your WebLogic server through the same process you would deploy any other Web Application.

Module Configuration

Option Default Description
rpcServerURI required, tcp://127.0.0.1:9999 The unix domain socket or tcp connection to communicate with the agent.
rpcTimeout required, 300ms The timeout in milliseconds that the RPC client waits for a response back from the agent.
maxResponseTime optional, no default The maximum time in seconds that the server response time will be evaluated against (i.e. to see if it exceeds this value) to determine if the module should send a post request to the agent.
maxResponseSize optional, no default The maximum size in bytes that the server response size will be evaluated against (i.e. to see if it exceeds this value) to determine if the module should send a post request to the agent.
maxPost optional, no default The maximum POST body size in bytes that can be sent to the Signal Sciences agent. For any POST body size exceeding this limit, the module will not send the request to the agent for detection.
asyncStartFix optional, false This can be set to true to workaround missing request body when handling requests asynchronously in servlets.
altResponseCodes optional, no default Space separated alternative agent response codes used to block the request in addition to 406. For example “403 429 503”.
excludeCidrBlock optional, no default A comma-delimited list of CIDR blocks or specific IPs to be excluded from filter processing.
excludeIpRange optional, no default A comma-delimited list of IP ranges or specific IPs to be excluded from filter processing.
excludePath optional, no default A comma-delimited list of paths to be excluded from filter processing. If the URL starts with the specified value it will be excluded. Matching is case-insensitive.
excludeHost optional, no default A comma-delimited list of host names to be excluded from filter processing. Matching is case-insensitive.

Sample module configuration:

Module configuration changes are made in the <!-- Signal Sciences Filter --> section of your application’s web.xml file:

<!-- Signal Sciences Filter -->
<filter>
    <filter-name>sigSciFilter</filter-name>
    <filter-class>com.signalsciences.servlet.filter.SigSciFilter</filter-class>
     <async-supported>true</async-supported>  
<init-param>
   <param-name>rpcTimeout</param-name>
   <param-value>500</param-value>
</init-param>
  <init-param>
   <param-name>asyncStartFix</param-name>
   <param-value>true</param-value>
</init-param>  
</filter>
<filter-mapping>
    <filter-name>sigSciFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<!-- end Signal Sciences Filter -->