Skip Headers

# Using Java

Previous

Next

When using Java, you must pass the session in a server platform constructor. Example: Configuring a Session with a Server Platform illustrates using a session event listener (see "Configuring Session Event Listeners") to configure a session with a server platform from the `oracle.toplink.platform.server` package.

Configuring a Session with a Server Platform

    public void preLogin(SessionEvent event) {
      Server server = (Server) event.getSession();
      server.setServerPlatform(new Oc4j_10_1_3_Platform((DatabaseSession) server));
      }