Commit 2598239c authored by Philippe Merle's avatar Philippe Merle
Browse files

Updated the Internet port used by the the Comanche HTTP server as 8080 is...

Updated the Internet port used by the the Comanche HTTP server as 8080 is already used by the Hudson server.
parent f98d4cfc
/***
* OW2 FraSCAti Assembly Factory Examples: Comanche
* Copyright (C) 2008-2009 INRIA, USTL
* Copyright (C) 2008-2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -20,7 +20,7 @@
*
* Author: Nicolas Pessemier
*
* Contributor(s): Nicolas Dolet
* Contributor(s): Nicolas Dolet - Philippe Merle
*/
package org.ow2.frascati.examples.comanche;
......@@ -49,9 +49,9 @@ public class RequestReceiver
new Thread() {
public void run() {
try {
ServerSocket ss = new ServerSocket(8080);
System.out.println("Comanche HTTP Server ready on port 8080.");
System.out.println("Load http://localhost:8080/gnu.jpg");
ServerSocket ss = new ServerSocket(8008);
System.out.println("Comanche HTTP Server ready on port 8008.");
System.out.println("Load http://localhost:8008/gnu.jpg");
while (true) {
final Socket socket = ss.accept();
s.schedule(new Runnable() {
......
/***
* OW2 FraSCAti Assembly Factory Examples: Comanche
* Copyright (C) 2008-2009 INRIA, USTL
* Copyright (C) 2008-2010 INRIA, USTL
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -20,7 +20,7 @@
*
* Author: Nicolas Pessemier
*
* Contributor(s): Nicolas Dolet
* Contributor(s): Nicolas Dolet - Philippe Merle
*/
package org.ow2.frascati.examples.comanche;
......@@ -42,7 +42,7 @@ public class ComancheTestCase extends FraSCAtiTestCase {
try {
Runnable service = getService(Runnable.class, "r");
service.run();
URL url = new URL("http://localhost:8080/gnu.jpg");
URL url = new URL("http://localhost:8008/gnu.jpg");
File file = new File("gnu.jpg");
BufferedImage remoteImage = ImageIO.read(url);
BufferedImage localImage = ImageIO.read(file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment