Package oracle.toplink.sessionbroker

Examples of oracle.toplink.sessionbroker.SessionBroker


   * that this SessionBroker is not capable of creating "client" Sessions. We need to handle
   * these differently depending on how the SessionFactory is being used. If we are creating a
   * plain Session than we can return the original SessionBroker.
   */
  public void testSessionBrokerThrowingValidationException() {
    SessionBroker broker = new MockSingleSessionBroker();
    SessionBrokerSessionFactory factory = new SessionBrokerSessionFactory(broker);

    assertEquals(factory.createSession(), broker);
    try {
      factory.createManagedClientSession();
View Full Code Here


    /**
     * Insure that the managed TopLink Session proxy is behaving correctly
     * when it has been initialized with a SessionBroker. 
     */
  public void testManagedSessionBroker() {
    SessionBroker client = new MockClientSessionBroker();
    SessionBroker broker = new MockServerSessionBroker(client);
    SessionBrokerSessionFactory factory = new SessionBrokerSessionFactory(broker);

    assertEquals(client, factory.createSession());

    Session session = factory.createManagedClientSession();
View Full Code Here

TOP

Related Classes of oracle.toplink.sessionbroker.SessionBroker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.