Changeset 18694 in vbox for trunk/src/VBox/Main/webservice/samples/java/jax-ws/clienttest.java
- Timestamp:
- Apr 3, 2009 2:23:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/samples/java/jax-ws/clienttest.java
r18609 r18694 5 5 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread. 6 6 * 7 * Copyright (C) 2008 Sun Microsystems, Inc. 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 * 17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 18 * Clara, CA 95054 USA or visit http://www.sun.com if you need 19 * additional information or have any questions. 7 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 8 * 9 * The following license applies to this file only: 10 * 11 * Permission is hereby granted, free of charge, to any person 12 * obtaining a copy of this software and associated documentation 13 * files (the "Software"), to deal in the Software without 14 * restriction, including without limitation the rights to use, 15 * copy, modify, merge, publish, distribute, sublicense, and/or 16 * sell copies of the Software, and to permit persons to whom the 17 * Software is furnished to do so, subject to the following conditions: 18 * 19 * The above copyright notice and this permission notice shall be 20 * included in all copies or substantial portions of the Software. 21 * 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 29 * OTHER DEALINGS IN THE SOFTWARE. 20 30 */ 21 31 /* Somewhat ugly way to support versioning */ … … 94 104 public void test3() 95 105 { 96 106 97 107 IWebsessionManager mgr1 = new IWebsessionManager("http://localhost:18082/"); 98 108 IWebsessionManager mgr2 = new IWebsessionManager("http://localhost:18083/"); 99 109 IVirtualBox vbox1 = mgr1.logon("test", "test"); 100 110 IVirtualBox vbox2 = mgr2.logon("test", "test"); 101 111 102 112 103 113 System.out.println("connection 1 to VirtualBox version " + vbox1.getVersion()); … … 110 120 vbox1 = mgr1.logon("test", "test"); 111 121 vbox2 = mgr2.logon("test", "test"); 112 122 113 123 System.out.println("second connection 1 to VirtualBox version " + vbox1.getVersion()); 114 124 System.out.println("second connection 2 to VirtualBox version " + vbox2.getVersion());
Note:
See TracChangeset
for help on using the changeset viewer.