Skip Headers
Oracle® Fusion Middleware Spring Support in Oracle WebLogic Server
12c Release 1 (12.1.1)

Part Number E24975-01
Go to Documentation Home
Go to Table of Contents
Go to Feedback page
Contact Us

Go to previous page
Go to next page
PDF · Mobi · ePub

5 Using WebLogic Server Clustering

This chapter describes how Spring applications can take advantage of WebLogic Server's clustering features. Because most Spring applications are packaged as Web applications (.war files), you do not need to do anything special in order to take advantage of WebLogic Server clusters. All you need to do is deploy your Spring application to the servers in a WebLogic Server cluster.

The certification of Spring 1.2.8, and 2.0, and 2.5.3 on WebLogic Server extends the Spring JndiRmiProxyFactoryBean and its associated service exporter so that it supports proxying with any Java EE RMI implementation. To use the extension to the JndiRmiProxyFactoryBean and its exporter:

  1. Configure client support by implementing code such as the following:

    <bean id="proProxy" 
      <property name="jndiName" value="t3://${serverName}:${rmiPort}/order"/>
      <property name="jndiEnvironment">
          <prop key="java.naming.factory.url.pkgs">weblogic.jndi.factories</prop>
      <property name="serviceInterface" 
  2. Configure the service exporter by implementing code such as the following:

    <bean id="order-pro" 
      <property name="service" ref="petStore"/>
      <property name="serviceInterface" 
      <property name="jndiName" value="order"/>