Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5825

org.jboss.test.cts.test.StatelessSessionUnitTestCase::testClientCallback()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-5.0.0.CR1, JBossAS-4.2.3.GA
    • Test Suite
    • None

      In this test, the client code creates an RMI Server in the client and passes the stub to the server.

      public void testClientCallback()
      throws Exception

      { getLog().debug("+++ testClientCallback()"); ClientCallbackImpl callback = new ClientCallbackImpl(); UnicastRemoteObject.exportObject(callback); sessionBean.callbackTest(callback, "testClientCallback"); // Test callback data assertTrue(callback.wasCalled()); UnicastRemoteObject.unexportObject(callback, true); }

      But it doesn't which NIC it is exported on, so the test can fail (timeout)
      when it "guesses" the wrong interface.
      It should be using an RMI server socket factory to
      override the bind address to $jbosstest.server.host

              smcgowan@redhat.com Shelly McGowan (Inactive)
              adrian.brock Adrian Brock (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: