Skip Headers
Oracle® Fusion Middleware Spring Support in Oracle WebLogic Server
11g Release 1 (10.3.1)

Part Number E14453-02
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

5 Using WebLogic Server Clustering

Spring applications can take advantage of WebLogic Server's clustering features. Because most Spring applications are packaged as Web applications (.war files), you need 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 J2EE 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"/>