simpleweb-support Mailing List for Simple (Page 27)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Carfield Y. <car...@ca...> - 2005-10-04 21:11:28
|
Nearly done, thx for support, still have some minor issue > You can create your own Mapper object to return the > name of your ActionService implementation. For > example: > After I do that, at the constructor, it complaint system is null, thus instead of core.Context temp =3D (core.Context)system.get("core"= ); if(temp =3D=3D null) { final File file =3D new File("WEB-INF/data/")= ; temp =3D new core.Context(file); system.put("core", temp); } ctx =3D temp; At constructor, now I just use static variable to held core.Context The other problem is context.getMimeType(location.getName()) always return "application/octetstream" for unknown type, which is not very handle for me. All other function are working :-) |
From: Niall G. <gal...@ya...> - 2005-10-04 11:14:21
|
Hi Carfield, --- Carfield Yim <car...@ca...> wrote: > So... how about this one? possible? > > > Anywhere within the context root the current > working > > directory or anywhere the Locator can reach. Look > at > > simple.http.serve.FileLocator. > > > > > System.setProperty("simple.http.load.mapper","simple.http.load.PatternMapper"); > > > > > > To set the mapper using, but how can I change > the > > > resolve properties > > > that mapper.xml tell the system? > > > > Edit the mapper.xml file, its loaded once on > startup. > > > I would like to package the software as a java web > start application, > in order to make the process easier, I will like to > prevent config > file as much as possible. In fact, there is only one > ActionService so > I would like to tell simple to that ActionService at > code but not in > XML file, is it possible? You can create your own Mapper object to return the name of your ActionService implementation. For example: public class MyMapper implements Mapper { public MyMapper(Context context){} public String getClass(String name) { return "mypackage.MyActionService"; } public String getPath(String target) { return target; } public String getName(String target) { return "myName"; } } This should work if you only need one service. Niall Niall Gallagher __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Carfield Y. <car...@ca...> - 2005-10-04 04:35:42
|
So... how about this one? possible? > Anywhere within the context root the current working > directory or anywhere the Locator can reach. Look at > simple.http.serve.FileLocator. > > System.setProperty("simple.http.load.mapper","simple.http.load.PatternMap= per"); > > > > To set the mapper using, but how can I change the > > resolve properties > > that mapper.xml tell the system? > > Edit the mapper.xml file, its loaded once on startup. > I would like to package the software as a java web start application, in order to make the process easier, I will like to prevent config file as much as possible. In fact, there is only one ActionService so I would like to tell simple to that ActionService at code but not in XML file, is it possible? |
From: Niall G. <gal...@ya...> - 2005-10-03 14:26:14
|
Hi Orri, The BasicController is not in use since release 2.7. Instead you will need to use the simple.template.ActionService. I have not had a chance to update the tutorial since I made this change. The ActionService is very easy to use, you simply add data to a Document and return it. Niall --- Orri Gautur <orr...@gm...> wrote: > Hi > > I´m trying to get familiar with Simple as I want to > embedd it in an > application. When I try to run the template example > in the tutorial jvm does > not recognize the BasicController class and the > system variable has not been > declared. I cannot find the BasicController class in > the api and I don´t > understand where this system variable comes from. I > pasted the example > directly from the simple website and I have added > necessary archives to the > classpath, can someone tell me what I´m doing wrong. > > thanks in advance//orri > Niall Gallagher __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Orri G. <orr...@gm...> - 2005-10-03 14:16:02
|
Hi I=B4m trying to get familiar with Simple as I want to embedd it in an application. When I try to run the template example in the tutorial jvm doe= s not recognize the BasicController class and the system variable has not bee= n declared. I cannot find the BasicController class in the api and I don=B4t understand where this system variable comes from. I pasted the example directly from the simple website and I have added necessary archives to the classpath, can someone tell me what I=B4m doing wrong. thanks in advance//orri |
From: Carfield Y. <car...@gm...> - 2005-10-03 04:57:02
|
So... how about this one? possible? > Anywhere within the context root the current working > directory or anywhere the Locator can reach. Look at > simple.http.serve.FileLocator. > > System.setProperty("simple.http.load.mapper","simple.http.load.PatternMap= per"); > > > > To set the mapper using, but how can I change the > > resolve properties > > that mapper.xml tell the system? > > Edit the mapper.xml file, its loaded once on startup. > I would like to package the software as a java web start application, in order to make the process easier, I will like to prevent config file as much as possible. In fact, there is only one ActionService so I would like to tell simple to that ActionService at code but not in XML file, is it possible? On 10/1/05, Niall Gallagher <gal...@ya...> wrote: > Hi, > > Yes, this should be fine. > > Niall > |
From: Niall G. <gal...@ya...> - 2005-10-02 20:54:28
|
Hi, Yes, this should be fine. Niall --- Carfield Yim <car...@ca...> wrote: > > > controller.set("core", new Core()); > > > > > > And within the ActionService.prepare acquire the > > > instance doing the following: > > > > > > core = (Core) system.get("core"); > > > > > And I think you mean something like this, right? > > core.Context temp = > (core.Context)system.get("core"); > if(temp == null) { > final File file = new File("WEB-INF/data/"); > temp = new core.Context(file); > system.put("core", temp); > } > ctx = temp; > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, > downloads, discussions, > and more. > http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher ______________________________________________________ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ |
From: Carfield Y. <car...@gm...> - 2005-10-02 17:24:04
|
> You can set the response code using Response.setCode. > Thx , that what I look for. > > Haven't notice that some interface API haven't been > > implemented... > > I am not sure what your are asking here? > Nothing ask, just sorry for asking question which api document have show. > Anywhere within the context root the current working > directory or anywhere the Locator can reach. Look at > simple.http.serve.FileLocator. > > System.setProperty("simple.http.load.mapper","simple.http.load.PatternMap= per"); > > > > To set the mapper using, but how can I change the > > resolve properties > > that mapper.xml tell the system? > > Edit the mapper.xml file, its loaded once on startup. > I would like to package the software as a java web start application, in order to make the process easier, I will like to prevent config file as much as possible. In fact, there is only one ActionService so I would like to tell simple to that ActionService at code but not in XML file, is it possible? > One instance is created, if the TemplateEngine will > reload the class if it is modified though. I would set > a Controller attribute. For example: > > controller.set("core", new Core()); > > And within the ActionService.prepare acquire the > instance doing the following: > > core =3D (Core) system.get("core"); > ok, thx for the hint, and how about clean up part? |
From: Carfield Y. <car...@ca...> - 2005-09-30 19:32:34
|
> > controller.set("core", new Core()); > > > > And within the ActionService.prepare acquire the > > instance doing the following: > > > > core =3D (Core) system.get("core"); > > And I think you mean something like this, right? =09=09=09core.Context temp =3D (core.Context)system.get("core"); =09=09=09if(temp =3D=3D null) { =09=09=09=09final File file =3D new File("WEB-INF/data/"); =09=09=09=09temp =3D new core.Context(file); =09=09=09=09system.put("core", temp); =09=09=09} =09=09=09ctx =3D temp; |
From: Niall G. <gal...@ya...> - 2005-09-29 23:26:38
|
Hi, --- Carfield Yim <car...@ca...> wrote: > > Well, kind of. It will generate a default error > > message saying "File Not Found". If you would like > a > > custom error page then I suggest that you > implement > > your own simple.http.serve.Format implementation. > Or > > implement the handle(request, response, code) > method > > yourself. > > Too sad that I can't just set the response code easy > as servlet api > does, will you consider to provide this feature in > future release? You can set the response code using Response.setCode. > > > > Yes, you implement the redirect(Request, Response) > > method which the action you want to take. Then > when > > this finishes return the Resource you want to > redirect > > to. For example, you could do either of these: > > > > public Resource redirect(Request req, Response > resp) { > > /* some code here to do somthing */ > > > > return resolve("/path/to/some/service.html"); > > } > > > > public Resource redirect(Request req, Response > resp) { > > /* some code here to do somthing */ > > > > return lookup("myNamedService"); > > } > > > > Haven't notice that some interface API haven't been > implemented... I am not sure what your are asking here? > > The above load and link can be encapsulated within > an > > entry to mapper.xml as follows. > > > > <resolve match="*" name="default" > > type="org.skife.simple.HelloService"/> > > > > However you must use the PatternMapper. To set > this > > for the server you can edit the simple-demo-1.2 > > server.xml (which is already set) or you can use a > -D > > command such as: > > > > > -Dsimple.http.load.mapper=simple.http.load.PatternMapper > > > > In the simple-demo-1.2 download the service > classes > > are located in the directory home/class > > > > Where should this mapper.xml put so that simple can > load? > Is it possible for me to set these information at > code? I think I can use Anywhere within the context root the current working directory or anywhere the Locator can reach. Look at simple.http.serve.FileLocator. System.setProperty("simple.http.load.mapper","simple.http.load.PatternMapper"); > > To set the mapper using, but how can I change the > resolve properties > that mapper.xml tell the system? Edit the mapper.xml file, its loaded once on startup. > Another question is how many instance will the > ActionService created? > Will it create a new instance for every request, or > it act like > servlet, create one instance then run the process() > method many time > to serve difference request? For now, my application > like this: > One instance is created, if the TemplateEngine will reload the class if it is modified though. I would set a Controller attribute. For example: controller.set("core", new Core()); And within the ActionService.prepare acquire the instance doing the following: core = (Core) system.get("core"); > public class Controller extends ActionService { > final private core.Context ctx; > public Controller(Context context) { > super(context); > try { > final File file = new File("WEB-INF/data/"); > this.ctx = new core.Context(file); > } catch (Exception e) { > throw new RuntimeException(e); > } > } > > protected void finalize() throws Throwable { > super.finalize(); > ctx.shutdown(); > } > > private void handleRequest(Request req, Response > res, Document document); > > public void process(Request request, Response > response) throws Exception { > try { > handleRequest(request, response, > system.lookup("template.vm")); > } catch (Exception e) { > throw new RuntimeException(e); > } > } > > public static void main(String[] list) throws > Exception { > TemplateEngine engine = new TemplateEngine(new > FileContext(), new > VelocityContainer(new TemplateManager().engine())); > Connection connection = > ConnectionFactory.getConnection(engine); > connection.connect(new ServerSocket(8082)); > } > } > > Where > final private core.Context ctx > should only created once for the application, if > Controller will > create may time then I need to think difference > implement, and now I > use finalizer to trigger the clean up, which is not > work in most case. > Just wonder if simple provide standard way for me to > clean up > application if the user quit? > Niall Niall Gallagher __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Carfield Y. <car...@ca...> - 2005-09-29 22:14:18
|
> Well, kind of. It will generate a default error > message saying "File Not Found". If you would like a > custom error page then I suggest that you implement > your own simple.http.serve.Format implementation. Or > implement the handle(request, response, code) method > yourself. Too sad that I can't just set the response code easy as servlet api does, will you consider to provide this feature in future release? > > Yes, you implement the redirect(Request, Response) > method which the action you want to take. Then when > this finishes return the Resource you want to redirect > to. For example, you could do either of these: > > public Resource redirect(Request req, Response resp) { > /* some code here to do somthing */ > > return resolve("/path/to/some/service.html"); > } > > public Resource redirect(Request req, Response resp) { > /* some code here to do somthing */ > > return lookup("myNamedService"); > } > Haven't notice that some interface API haven't been implemented... > The above load and link can be encapsulated within an > entry to mapper.xml as follows. > > <resolve match=3D"*" name=3D"default" > type=3D"org.skife.simple.HelloService"/> > > However you must use the PatternMapper. To set this > for the server you can edit the simple-demo-1.2 > server.xml (which is already set) or you can use a -D > command such as: > > -Dsimple.http.load.mapper=3Dsimple.http.load.PatternMapper > > In the simple-demo-1.2 download the service classes > are located in the directory home/class > Where should this mapper.xml put so that simple can load? Is it possible for me to set these information at code? I think I can use System.setProperty("simple.http.load.mapper","simple.http.load.PatternMappe= r"); To set the mapper using, but how can I change the resolve properties that mapper.xml tell the system? Another question is how many instance will the ActionService created? Will it create a new instance for every request, or it act like servlet, create one instance then run the process() method many time to serve difference request? For now, my application like this: public class Controller extends ActionService { =09final private core.Context ctx; =09public Controller(Context context) { =09=09super(context); =09=09try { =09=09=09final File file =3D new File("WEB-INF/data/"); =09=09=09this.ctx =3D new core.Context(file); =09=09} catch (Exception e) { =09=09=09throw new RuntimeException(e); =09=09} =09} =09protected void finalize() throws Throwable { =09=09super.finalize(); =09=09ctx.shutdown(); =09} =09private void handleRequest(Request req, Response res, Document document)= ; =09public void process(Request request, Response response) throws Exception= { =09=09try { =09=09=09handleRequest(request, response, system.lookup("template.vm")); =09=09} catch (Exception e) { =09=09=09throw new RuntimeException(e); =09=09} =09} =09public static void main(String[] list) throws Exception { =09=09TemplateEngine engine =3D new TemplateEngine(new FileContext(), new VelocityContainer(new TemplateManager().engine())); =09=09Connection connection =3D ConnectionFactory.getConnection(engine); =09=09connection.connect(new ServerSocket(8082)); =09} } Where =09final private core.Context ctx should only created once for the application, if Controller will create may time then I need to think difference implement, and now I use finalizer to trigger the clean up, which is not work in most case. Just wonder if simple provide standard way for me to clean up application if the user quit? |
From: Niall G. <gal...@ya...> - 2005-09-28 21:51:31
|
Hi Carfield, --- Carfield Yim <car...@gm...> wrote: > > Within BasicServive call the handle method with > the > > status code. So for not found, the following will > > work. > > > > handle(request, response, 404); > > > > or > > > > throw new FileNotFoundException(); > > > > What I need is just set the status code so that I > can test using HTTP > status code, and I've custom error page, if I use > handle(req, res, > 404), will it call the browser to use default error > page? Well, kind of. It will generate a default error message saying "File Not Found". If you would like a custom error page then I suggest that you implement your own simple.http.serve.Format implementation. Or implement the handle(request, response, code) method yourself. > > You should use the > simple.http.load.RedirectService > > this will allow you to forward or redirect to some > > other path or URL. It will forward relative URLs > > (e.g /path/index.html) and redirect absolute URLs > (e.g > > http://domain/path/index.html). > > > > This is an abstract class, how can I get an really > instance? and I > guess the method I should use is > RedirectService.resolve(URI) , right? Yes, you implement the redirect(Request, Response) method which the action you want to take. Then when this finishes return the Resource you want to redirect to. For example, you could do either of these: public Resource redirect(Request req, Response resp) { /* some code here to do somthing */ return resolve("/path/to/some/service.html"); } public Resource redirect(Request req, Response resp) { /* some code here to do somthing */ return lookup("myNamedService"); } > Besides, is this method thread safe? Or it better > that I create new > instance for every redirect call? It is thread safe throughout, you should extend the class and provide some implementation. Although not documented the intended way to use the RedirectService is to perform some operation that does not provide a "display" then forward to a service that does, such as an ActionService. For example: Client ---> RedirectService ---> ActionService > > The Context.getMimeType method will use the file > > extension e.g "html" for index.html to convert to > a > > MIME type. The MIME database is located at > > simple/http/serve/Mime.properties. You can > override > > with mime.xml. > > > I think the default one should work... > > > > 4) Any example of how http request work? E.g. > how to > > > handle multipart request? > > > > Download the simple-upload-0.1.tar.gz package. > > > > I would recommend that you download the > > simple-demo-1.2.tar.gz package to learn how > > configuration files are used. Also, there are > plenty > > of examples. > > > Seen it work good > > However, how can I set the default class for > TemplateEngine? Can I do > similar thing like > > > LoaderEngine engine = new LoaderEngine(); > engine.load("default", > "org.skife.simple.HelloService"); > engine.link("*", "default"); > ProtocolHandler handler = > HandlerFactory.getInstance(engine); > Connection connection = > ConnectionFactory.getConnection(handler); > connection.connect(new ServerSocket(8282)); The above load and link can be encapsulated within an entry to mapper.xml as follows. <resolve match="*" name="default" type="org.skife.simple.HelloService"/> However you must use the PatternMapper. To set this for the server you can edit the simple-demo-1.2 server.xml (which is already set) or you can use a -D command such as: -Dsimple.http.load.mapper=simple.http.load.PatternMapper In the simple-demo-1.2 download the service classes are located in the directory home/class Niall Niall Gallagher __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Carfield Y. <car...@gm...> - 2005-09-28 19:01:57
|
> Within BasicServive call the handle method with the > status code. So for not found, the following will > work. > > handle(request, response, 404); > > or > > throw new FileNotFoundException(); > What I need is just set the status code so that I can test using HTTP status code, and I've custom error page, if I use handle(req, res, 404), will it call the browser to use default error page? > You should use the simple.http.load.RedirectService > this will allow you to forward or redirect to some > other path or URL. It will forward relative URLs > (e.g /path/index.html) and redirect absolute URLs (e.g > http://domain/path/index.html). > This is an abstract class, how can I get an really instance? and I guess the method I should use is RedirectService.resolve(URI) , right? Besides, is this method thread safe? Or it better that I create new instance for every redirect call? > The Context.getMimeType method will use the file > extension e.g "html" for index.html to convert to a > MIME type. The MIME database is located at > simple/http/serve/Mime.properties. You can override > with mime.xml. > I think the default one should work... > > 4) Any example of how http request work? E.g. how to > > handle multipart request? > > Download the simple-upload-0.1.tar.gz package. > > I would recommend that you download the > simple-demo-1.2.tar.gz package to learn how > configuration files are used. Also, there are plenty > of examples. > Seen it work good However, how can I set the default class for TemplateEngine? Can I do similar thing like LoaderEngine engine =3D new LoaderEngine(); engine.load("default", "org.skife.simple.HelloService"); engine.link("*", "default"); ProtocolHandler handler =3D HandlerFactory.getInstance(engine); Connection connection =3D ConnectionFactory.getConnection(handler); connection.connect(new ServerSocket(8282)); ?? |
From: Niall G. <gal...@ya...> - 2005-09-27 19:15:03
|
Hi Carfield, I have answered your questions below. > 1) > HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND) > , > how do I set response header status? Within BasicServive call the handle method with the status code. So for not found, the following will work. handle(request, response, 404); or throw new FileNotFoundException(); > 2) HttpServletResponse.sendRedirect(), how do I > redirect user to some liink? You should use the simple.http.load.RedirectService this will allow you to forward or redirect to some other path or URL. It will forward relative URLs (e.g /path/index.html) and redirect absolute URLs (e.g http://domain/path/index.html). > 3) > HttpServlet.getServletContext().getMimeType(file), > is it possible > to get the typical MIME type of a file? > Context.getMimeType() is the > correct method? The Context.getMimeType method will use the file extension e.g "html" for index.html to convert to a MIME type. The MIME database is located at simple/http/serve/Mime.properties. You can override with mime.xml. > 4) Any example of how http request work? E.g. how to > handle multipart request? Download the simple-upload-0.1.tar.gz package. I would recommend that you download the simple-demo-1.2.tar.gz package to learn how configuration files are used. Also, there are plenty of examples. Niall Niall Gallagher __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
From: Carfield Y. <car...@ca...> - 2005-09-27 19:11:52
|
Like to try out simple to see if it is work better than normal servlet. However I am not sure how to port some method from servlet to simple api: 1) HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND) , how do I set response header status? 2) HttpServletResponse.sendRedirect(), how do I redirect user to some liink= ? 3) HttpServlet.getServletContext().getMimeType(file), is it possible to get the typical MIME type of a file? Context.getMimeType() is the correct method? 4) Any example of how http request work? E.g. how to handle multipart reque= st? |
From: Carfield Y. <car...@gm...> - 2005-09-27 18:48:59
|
Like to try out simple to see if it is work better than normal servlet. However I am not sure how to port some method from servlet to simple api: 1) HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND) , how do I set response header status? 2) HttpServletResponse.sendRedirect(), how do I redirect user to some liink= ? 3) HttpServlet.getServletContext().getMimeType(file), is it possible to get the typical MIME type of a file? Context.getMimeType() is the correct method? 4) Any example of how http request work? E.g. how to handle multipart reque= st? |
From: Niall G. <gal...@ya...> - 2005-08-31 15:36:07
|
Hi Henry, I did not get a chance to implement a clean shutdown for Simple yet. Maybe in the next release. Regards, Niall --- Henry Voyer <hen...@ge...> wrote: > Hi Neil > > Is the clean shutdown implemented in the 2.7 > release? > > If so, what are the steps involved. > > Regards > > H > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Henry V. <hen...@ge...> - 2005-08-31 15:18:13
|
Hi Neil Is the clean shutdown implemented in the 2.7 release? If so, what are the steps involved. Regards H |
From: Jan M. <ja...@ja...> - 2005-08-29 15:15:32
|
I hope so too. So far there is no sign of problems, Jan -----Original Message----- From: sim...@li... [mailto:sim...@li...] On Behalf Of Niall Gallagher Sent: 29. august 2005 16:54 To: sim...@li... Subject: RE: [Simpleweb-Support] Simple 2.7 Hi Jan, Yes, slight oversight on the documentation. Hope this release has solved your problem! Thanks, Niall --- Jan Mikkelsen <ja...@ja...> wrote: > Hi >=20 > Yes, now it works! > You might want to make the same change in the > comment in > ConfiguratorFactory.java :) >=20 > Thanks! >=20 > -----Original Message----- > From: sim...@li... > [mailto:sim...@li...] > On Behalf Of > Niall Gallagher > Sent: 29. august 2005 14:08 > To: sim...@li... > Subject: RE: [Simpleweb-Support] Simple 2.7 >=20 > Hi Jan, >=20 > The property is called >=20 > simple.http.connect.configurator >=20 > So its all lowercase. If you try it with this > property > it should work.=20 >=20 > Regards, > Niall >=20 > --- Jan Mikkelsen <ja...@ja...> wrote: >=20 > > Hi Niall > >=20 > > Thank you for the new release. I'm not sure I am > > using the new > > Configurator right. > >=20 > > I have a copy of your LinuxConfigurator. I have > > added a log statement in > > the configure method, and it does not log. > >=20 > > I have added=20 > > -Dsimple.http.connect.Configurator=3D<my class name> > > to the java command. > >=20 > > This is how I start Simple: > >=20 > > serviceEngine =3D new MapperEngine(); > > Connection network =3D > > ConnectionFactory.getConnection(serviceEngine,=20 > > new BufferedPipelineFactory(2048));=20 > > serviceEngine.load("image", > > "com.jatak.cbs.service.ImageService"); > > serviceEngine.link("/image.agent/*", "image"); > > network.connect(new ServerSocket(80)); > >=20 > > I hope you can see what is wrong. > >=20 > > Kind regards, > > Jan > >=20 > > -----Original Message----- > > From: > sim...@li... > > > [mailto:sim...@li...] > > On Behalf Of > > Niall Gallagher > > Sent: 26. august 2005 19:02 > > To: sim...@li... > > Subject: [Simpleweb-Support] Simple 2.7 > >=20 > > Hi All, > >=20 > > I have uploaded 2.7, which contains the bug fix > for > > simple.util.process.ProcessQueue. This should > ensure > > that there are no more deadlocks after resizing > the > > ProcessQueue. Also, there is a new > > simple.http.connect.Configurator object which > allows > > a > > configuration to be implemented suitable to the > > environment you are running Simple within. > >=20 > > The simple-demo-1.1.tar.gz package contains a > > LinuxConfigurator that uses the following=20 > >=20 > > socket.setSoLinger(true,5) > >=20 > > This reportedly removes the CLOSE_WAIT problem > that > > some users have beem having on Linux. The source > for > > this Configurator is within the > simple-demo-1.1.jar > > file.=20 > >=20 > > Finally, if you have been using the MapperEngine, > > the > > mapper.properties file is now ignored. Instead a > > mapper.xml file must be used, examples are > provided. > > Also, velocity.properties is no longer used, this > > has > > been replaced with velocity.xml.=20 > >=20 > > To download go to: > >=20 > > > https://sourceforge.net/project/showfiles.php?group_id=3D62369 > >=20 > > or > >=20 > > http://simpleweb.sourceforge.net/download/2.7 > >=20 > > Regards, > > Niall > >=20 > > Niall Gallagher > >=20 > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around=20 > > http://mail.yahoo.com=20 > >=20 > >=20 > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > > Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing > Projects > > & Teams * Testing & > > QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >=20 > >=20 > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > > Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing > Projects > > & Teams * Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >=20 >=20 >=20 > Niall Gallagher >=20 >=20 > =09 > ____________________________________________________ > Start your day with Yahoo! - make it your home page=20 > http://www.yahoo.com/r/hs=20 > =20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO >=20 =3D=3D=3D message truncated =3D=3D=3D Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2005-08-29 14:53:55
|
Hi Jan, Yes, slight oversight on the documentation. Hope this release has solved your problem! Thanks, Niall --- Jan Mikkelsen <ja...@ja...> wrote: > Hi > > Yes, now it works! > You might want to make the same change in the > comment in > ConfiguratorFactory.java :) > > Thanks! > > -----Original Message----- > From: sim...@li... > [mailto:sim...@li...] > On Behalf Of > Niall Gallagher > Sent: 29. august 2005 14:08 > To: sim...@li... > Subject: RE: [Simpleweb-Support] Simple 2.7 > > Hi Jan, > > The property is called > > simple.http.connect.configurator > > So its all lowercase. If you try it with this > property > it should work. > > Regards, > Niall > > --- Jan Mikkelsen <ja...@ja...> wrote: > > > Hi Niall > > > > Thank you for the new release. I'm not sure I am > > using the new > > Configurator right. > > > > I have a copy of your LinuxConfigurator. I have > > added a log statement in > > the configure method, and it does not log. > > > > I have added > > -Dsimple.http.connect.Configurator=<my class name> > > to the java command. > > > > This is how I start Simple: > > > > serviceEngine = new MapperEngine(); > > Connection network = > > ConnectionFactory.getConnection(serviceEngine, > > new BufferedPipelineFactory(2048)); > > serviceEngine.load("image", > > "com.jatak.cbs.service.ImageService"); > > serviceEngine.link("/image.agent/*", "image"); > > network.connect(new ServerSocket(80)); > > > > I hope you can see what is wrong. > > > > Kind regards, > > Jan > > > > -----Original Message----- > > From: > sim...@li... > > > [mailto:sim...@li...] > > On Behalf Of > > Niall Gallagher > > Sent: 26. august 2005 19:02 > > To: sim...@li... > > Subject: [Simpleweb-Support] Simple 2.7 > > > > Hi All, > > > > I have uploaded 2.7, which contains the bug fix > for > > simple.util.process.ProcessQueue. This should > ensure > > that there are no more deadlocks after resizing > the > > ProcessQueue. Also, there is a new > > simple.http.connect.Configurator object which > allows > > a > > configuration to be implemented suitable to the > > environment you are running Simple within. > > > > The simple-demo-1.1.tar.gz package contains a > > LinuxConfigurator that uses the following > > > > socket.setSoLinger(true,5) > > > > This reportedly removes the CLOSE_WAIT problem > that > > some users have beem having on Linux. The source > for > > this Configurator is within the > simple-demo-1.1.jar > > file. > > > > Finally, if you have been using the MapperEngine, > > the > > mapper.properties file is now ignored. Instead a > > mapper.xml file must be used, examples are > provided. > > Also, velocity.properties is no longer used, this > > has > > been replaced with velocity.xml. > > > > To download go to: > > > > > https://sourceforge.net/project/showfiles.php?group_id=62369 > > > > or > > > > http://simpleweb.sourceforge.net/download/2.7 > > > > Regards, > > Niall > > > > Niall Gallagher > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > > Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing > Projects > > & Teams * Testing & > > QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > > Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing > Projects > > & Teams * Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > Niall Gallagher > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > === message truncated === Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Jan M. <ja...@ja...> - 2005-08-29 12:16:31
|
Hi Yes, now it works! You might want to make the same change in the comment in ConfiguratorFactory.java :) Thanks! -----Original Message----- From: sim...@li... [mailto:sim...@li...] On Behalf Of Niall Gallagher Sent: 29. august 2005 14:08 To: sim...@li... Subject: RE: [Simpleweb-Support] Simple 2.7 Hi Jan, The property is called simple.http.connect.configurator So its all lowercase. If you try it with this property it should work.=20 Regards, Niall --- Jan Mikkelsen <ja...@ja...> wrote: > Hi Niall >=20 > Thank you for the new release. I'm not sure I am > using the new > Configurator right. >=20 > I have a copy of your LinuxConfigurator. I have > added a log statement in > the configure method, and it does not log. >=20 > I have added=20 > -Dsimple.http.connect.Configurator=3D<my class name> > to the java command. >=20 > This is how I start Simple: >=20 > serviceEngine =3D new MapperEngine(); > Connection network =3D > ConnectionFactory.getConnection(serviceEngine,=20 > new BufferedPipelineFactory(2048));=20 > serviceEngine.load("image", > "com.jatak.cbs.service.ImageService"); > serviceEngine.link("/image.agent/*", "image"); > network.connect(new ServerSocket(80)); >=20 > I hope you can see what is wrong. >=20 > Kind regards, > Jan >=20 > -----Original Message----- > From: sim...@li... > [mailto:sim...@li...] > On Behalf Of > Niall Gallagher > Sent: 26. august 2005 19:02 > To: sim...@li... > Subject: [Simpleweb-Support] Simple 2.7 >=20 > Hi All, >=20 > I have uploaded 2.7, which contains the bug fix for > simple.util.process.ProcessQueue. This should ensure > that there are no more deadlocks after resizing the > ProcessQueue. Also, there is a new > simple.http.connect.Configurator object which allows > a > configuration to be implemented suitable to the > environment you are running Simple within. >=20 > The simple-demo-1.1.tar.gz package contains a > LinuxConfigurator that uses the following=20 >=20 > socket.setSoLinger(true,5) >=20 > This reportedly removes the CLOSE_WAIT problem that > some users have beem having on Linux. The source for > this Configurator is within the simple-demo-1.1.jar > file.=20 >=20 > Finally, if you have been using the MapperEngine, > the > mapper.properties file is now ignored. Instead a > mapper.xml file must be used, examples are provided. > Also, velocity.properties is no longer used, this > has > been replaced with velocity.xml.=20 >=20 > To download go to: >=20 > https://sourceforge.net/project/showfiles.php?group_id=3D62369 >=20 > or >=20 > http://simpleweb.sourceforge.net/download/2.7 >=20 > Regards, > Niall >=20 > Niall Gallagher >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around=20 > http://mail.yahoo.com=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 Niall Gallagher =09 ____________________________________________________ Start your day with Yahoo! - make it your home page=20 http://www.yahoo.com/r/hs=20 =20 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2005-08-29 12:07:53
|
Hi Jan, The property is called simple.http.connect.configurator So its all lowercase. If you try it with this property it should work. Regards, Niall --- Jan Mikkelsen <ja...@ja...> wrote: > Hi Niall > > Thank you for the new release. I'm not sure I am > using the new > Configurator right. > > I have a copy of your LinuxConfigurator. I have > added a log statement in > the configure method, and it does not log. > > I have added > -Dsimple.http.connect.Configurator=<my class name> > to the java command. > > This is how I start Simple: > > serviceEngine = new MapperEngine(); > Connection network = > ConnectionFactory.getConnection(serviceEngine, > new BufferedPipelineFactory(2048)); > serviceEngine.load("image", > "com.jatak.cbs.service.ImageService"); > serviceEngine.link("/image.agent/*", "image"); > network.connect(new ServerSocket(80)); > > I hope you can see what is wrong. > > Kind regards, > Jan > > -----Original Message----- > From: sim...@li... > [mailto:sim...@li...] > On Behalf Of > Niall Gallagher > Sent: 26. august 2005 19:02 > To: sim...@li... > Subject: [Simpleweb-Support] Simple 2.7 > > Hi All, > > I have uploaded 2.7, which contains the bug fix for > simple.util.process.ProcessQueue. This should ensure > that there are no more deadlocks after resizing the > ProcessQueue. Also, there is a new > simple.http.connect.Configurator object which allows > a > configuration to be implemented suitable to the > environment you are running Simple within. > > The simple-demo-1.1.tar.gz package contains a > LinuxConfigurator that uses the following > > socket.setSoLinger(true,5) > > This reportedly removes the CLOSE_WAIT problem that > some users have beem having on Linux. The source for > this Configurator is within the simple-demo-1.1.jar > file. > > Finally, if you have been using the MapperEngine, > the > mapper.properties file is now ignored. Instead a > mapper.xml file must be used, examples are provided. > Also, velocity.properties is no longer used, this > has > been replaced with velocity.xml. > > To download go to: > > https://sourceforge.net/project/showfiles.php?group_id=62369 > > or > > http://simpleweb.sourceforge.net/download/2.7 > > Regards, > Niall > > Niall Gallagher > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs |
From: Jan M. <ja...@ja...> - 2005-08-29 10:13:08
|
Hi Niall Thank you for the new release. I'm not sure I am using the new Configurator right. I have a copy of your LinuxConfigurator. I have added a log statement in the configure method, and it does not log. I have added=20 -Dsimple.http.connect.Configurator=3D<my class name> to the java = command. This is how I start Simple: serviceEngine =3D new MapperEngine(); Connection network =3D ConnectionFactory.getConnection(serviceEngine,=20 new BufferedPipelineFactory(2048));=20 serviceEngine.load("image", "com.jatak.cbs.service.ImageService"); serviceEngine.link("/image.agent/*", "image"); network.connect(new ServerSocket(80)); I hope you can see what is wrong. Kind regards, Jan -----Original Message----- From: sim...@li... [mailto:sim...@li...] On Behalf Of Niall Gallagher Sent: 26. august 2005 19:02 To: sim...@li... Subject: [Simpleweb-Support] Simple 2.7 Hi All, I have uploaded 2.7, which contains the bug fix for simple.util.process.ProcessQueue. This should ensure that there are no more deadlocks after resizing the ProcessQueue. Also, there is a new simple.http.connect.Configurator object which allows a configuration to be implemented suitable to the environment you are running Simple within. The simple-demo-1.1.tar.gz package contains a LinuxConfigurator that uses the following=20 socket.setSoLinger(true,5) This reportedly removes the CLOSE_WAIT problem that some users have beem having on Linux. The source for this Configurator is within the simple-demo-1.1.jar file.=20 Finally, if you have been using the MapperEngine, the mapper.properties file is now ignored. Instead a mapper.xml file must be used, examples are provided. Also, velocity.properties is no longer used, this has been replaced with velocity.xml.=20 To download go to: https://sourceforge.net/project/showfiles.php?group_id=3D62369 or http://simpleweb.sourceforge.net/download/2.7 Regards, Niall Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2005-08-26 17:02:04
|
Hi All, I have uploaded 2.7, which contains the bug fix for simple.util.process.ProcessQueue. This should ensure that there are no more deadlocks after resizing the ProcessQueue. Also, there is a new simple.http.connect.Configurator object which allows a configuration to be implemented suitable to the environment you are running Simple within. The simple-demo-1.1.tar.gz package contains a LinuxConfigurator that uses the following socket.setSoLinger(true,5) This reportedly removes the CLOSE_WAIT problem that some users have beem having on Linux. The source for this Configurator is within the simple-demo-1.1.jar file. Finally, if you have been using the MapperEngine, the mapper.properties file is now ignored. Instead a mapper.xml file must be used, examples are provided. Also, velocity.properties is no longer used, this has been replaced with velocity.xml. To download go to: https://sourceforge.net/project/showfiles.php?group_id=62369 or http://simpleweb.sourceforge.net/download/2.7 Regards, Niall Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Gail R. F. <ga...@sc...> - 2005-08-26 16:20:13
|
Jan, I'm curious ... what issues with Simple are you seeing? - Gail. -----Original Message----- From: sim...@li... [mailto:sim...@li...] On Behalf Of Jan Mikkelsen Sent: Friday, August 26, 2005 9:08 AM To: sim...@li... Subject: RE: [Simpleweb-Support] Simple Stability... Ok, mine is even newer it seems: Linux cbs2.jatak.com 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:52:23 EDT 2005 i686 i686 i386 GNU/Linux I'll update Simple from 2.6 to the coming version and see what happens. Thanks! |