Allan G. Ramirez | 1 Nov 2007 01:10
Favicon

Re: Help running Jetty in embedded mode

Kate Fox wrote:
> Hi,
>
> I'm trying to run Jetty in embedded mode.  Below is my current 
> configuration:
>
>         Server server = new Server(8080);
>
>         // setup resource files
>         ResourceHandler resource_handler = new ResourceHandler();
>         resource_handler.setResourceBase("web");
>         HandlerList handlers = new HandlerList();
>         ContextHandlerCollection contexts = new ContextHandlerCollection();
>         Handler[] handlersarray = new Handler[] { resource_handler, 
> contexts,
>                 new DefaultHandler() };
>         handlers.setHandlers(handlersarray);
>         server.setHandler(handlers);
>        
>         // file stats graph
>         Context root = new Context(contexts, "/fileStats", 
> Context.SESSIONS);
>         root.addServlet(new ServletHolder(new FileStatsGraph()), "/*");
>         server.start();
>         server.join();
>
> Two questions:
> 1.  I used to use Jetty a long time back and I remember that there was a 
> way to dynamically launch servlets without having to declare each one.  
> (with an invoker I think).  I couldn't find the syntax to do this in the 
(Continue reading)

Allan G. Ramirez | 1 Nov 2007 01:31
Favicon

Re: Help running Jetty in embedded mode

Kate Fox wrote:
> Hi,
>
> I'm trying to run Jetty in embedded mode.  Below is my current 
> configuration:
>
>         Server server = new Server(8080);
>
>         // setup resource files
>         ResourceHandler resource_handler = new ResourceHandler();
>         resource_handler.setResourceBase("web");
>         HandlerList handlers = new HandlerList();
>         ContextHandlerCollection contexts = new ContextHandlerCollection();
>         Handler[] handlersarray = new Handler[] { resource_handler, 
> contexts,
>                 new DefaultHandler() };
>         handlers.setHandlers(handlersarray);
>         server.setHandler(handlers);
>        
>         // file stats graph
>         Context root = new Context(contexts, "/fileStats", 
> Context.SESSIONS);
>         root.addServlet(new ServletHolder(new FileStatsGraph()), "/*");
>         server.start();
>         server.join();
>
> Two questions:
> 1.  I used to use Jetty a long time back and I remember that there was a 
> way to dynamically launch servlets without having to declare each one.  
> (with an invoker I think).  I couldn't find the syntax to do this in the 
(Continue reading)

Allan G. Ramirez | 1 Nov 2007 02:06
Favicon

Re: Jetty and PHP

Mika Stenberg wrote:
> How can I use Jetty as HTTP server with PHP support for scripts?
>
> Thanks,
> Mika
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Jetty-support mailing list
> Jetty-support <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
>   
http://docs.codehaus.org/display/JETTY/Jetty+and+PHP

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

(Continue reading)

Allan G. Ramirez | 1 Nov 2007 02:56
Favicon

Re: Help running Jetty in embedded mode

vikas patil wrote:
> Hi Allan,
>            Sorry for interrupting this post in this manner. But I had
> similar question in regard to using the embedded jetty.
> I am trying to use the embedded jetty code to deploy a web application
> inside an eclipse plugin. I was able to do it by including the jars
> necessary directly into my project. But now since eclipse 3.3 packages
> the jetty plugin, I wanted to use the same plugin instead of having
> separate jetty jars inside my plugin. Is it possible to do this.If so
> please direct me as to where to look into.
>
> Thanks and Regards,
> Vikas A Patil
>
> On Nov 1, 2007 6:01 AM, Allan G. Ramirez <agramirez <at> exist.com> wrote:
>   
>> Kate Fox wrote:
>>     
>>> Hi,
>>>
>>> I'm trying to run Jetty in embedded mode.  Below is my current
>>> configuration:
>>>
>>>         Server server = new Server(8080);
>>>
>>>         // setup resource files
>>>         ResourceHandler resource_handler = new ResourceHandler();
>>>         resource_handler.setResourceBase("web");
>>>         HandlerList handlers = new HandlerList();
>>>         ContextHandlerCollection contexts = new ContextHandlerCollection();
(Continue reading)

Will Hartung | 1 Nov 2007 01:01

Postgres Connection pool

Hi all,

 

We have this in our jetty.xml

 

    <New id="db" class="org.mortbay.jetty.plus.naming.Resource">

    <Arg>jdbc/db</Arg>

    <Arg>

     <New class="org.postgresql.ds.PGSimpleDataSource">

      <Set name="portNumber">5432</Set>

      <Set name="password">password</Set>

      <Set name="serverName">host</Set>

      <Set name="databaseName">dbname</Set>

      <Set name="user">username</Set>

     </New>

    </Arg>

   </New>

 

And we use JNDI to fetch the resource.

 

I was wondering what we should change this to in order to use a connection pool implementation for this resource instead of the direct connections that we’re using now. I don’t see anything about connection pools on the web site.

 

Thanx!

 

Regards,

 

Will Hartung

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
Allan G. Ramirez | 2 Nov 2007 01:09
Favicon

Re: Postgres Connection pool

Will Hartung wrote:

Hi all,

 

We have this in our jetty.xml

 

    <New id="db" class="org.mortbay.jetty.plus.naming.Resource">

    <Arg>jdbc/db</Arg>

    <Arg>

     <New class="org.postgresql.ds.PGSimpleDataSource">

      <Set name="portNumber">5432</Set>

      <Set name="password">password</Set>

      <Set name="serverName">host</Set>

      <Set name="databaseName">dbname</Set>

      <Set name="user">username</Set>

     </New>

    </Arg>

   </New>

 

And we use JNDI to fetch the resource.

 

I was wondering what we should change this to in order to use a connection pool implementation for this resource instead of the direct connections that we’re using now. I don’t see anything about connection pools on the web site.

 

Thanx!

 

Regards,

 

Will Hartung

 

------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Jetty-support mailing list Jetty-support <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jetty-support

Hi Will,

I read the PGSimpleDataSource class docu. It doesn't support connection pooling. I'm using ComboPooledDataSource of c3p0  in my spring applications because it supports JDBC3 statement and connection pooling. So I ported theconfiguration to jetty


    <New id="db" class="org.mortbay.jetty.plus.naming.Resource">

    <Arg>jdbc/dbPostgres</Arg>

    <Arg>

     <New class="com.mchange.v2.c3p0.ComboPooledDataSource">

        <Set name="driverClass">org.postgresql.Driver</Set>

        <Set name="jdbcUrl">jdbc:postgresql://localhost/mydb</Set>

        <Set name="user">user</Set>
         <Set name="password">password</Set>

        <Set name="initialPoolSize" value="5" />
        <Set name="minPoolSize" value="0" />
        <Set name="acquireIncrement" value="10" />
        <Set name="maxPoolSize" value="20" />
        <Set name="maxIdleTime" value="300" />
        <Set name="loginTimeout" value="500" />

     </New>

    </Arg>

   </New>


Regards,
Allan



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
Grant Gardner | 1 Nov 2007 10:37
Picon
Gravatar

Re: Jetty and PHP

Hi, 

I started a project about a year ago to provide a container independant
CGI/FastCGI implementation and I currently use it to run PHP apps behind
Jetty6.

Depending on what you want to do plain old CGI may be enough, and the
standard Jetty CGIServlet will suffice.

Instructions for Jetty6 at http://jen.sourceforge.net/examples/php.html
are effectively an updated version of the Jetty5 instructions at
http://docs.codehaus.org/display/JETTY/Jetty+and+PHP . Just ignore the
htaccess filter, and replace the au.com.lastweekend.cgi.CGIServlet
reference with the Jetty one. (You may also need to change the argument
names)

If you do need/want FastCGI then an overview is here...
http://jen.sourceforge.net/cgi.html

The svn repository is on sourceforge but the released version is in a
private maven repository because I didn't take it any further.

http://www.lastweekend.com.au/repository/au/com/lastweekend/jen/0.03/jen-0.03.jar

http://www.lastweekend.com.au/repository/au/com/lastweekend/jen/0.03/jen-0.03-sources.jar

Cheers,
	Grant.

On Wed, 2007-10-31 at 12:12 +0200, Max Sevenfold wrote:
> Hello Mika,
> 
> The best solution is FastCGI.
> 
> I know about 2 FastCGI servlets.
> 
> PHPJavaBridge (very big and complex)
> Caucho Resin's FastCGI servlet is very good. but works with resin
> only. (I think it is GPL)
> 
> It may take half day to port it to Jetty I think.
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Max Sevenfold | 1 Nov 2007 10:57
Picon

Re: Jetty and PHP

Hello Grant,

Great project!

-- 
Best regards,
 Max                            mailto:max.seven.max <at> gmail.com

Thursday, November 1, 2007, 11:37:24 AM, you wrote:

GG> Hi, 

GG> I started a project about a year ago to provide a container independant
GG> CGI/FastCGI implementation and I currently use it to run PHP apps behind
GG> Jetty6.

GG> Depending on what you want to do plain old CGI may be enough, and the
GG> standard Jetty CGIServlet will suffice.

GG> Instructions for Jetty6 at
GG> http://jen.sourceforge.net/examples/php.html
GG> are effectively an updated version of the Jetty5 instructions at
GG> http://docs.codehaus.org/display/JETTY/Jetty+and+PHP . Just ignore the
GG> htaccess filter, and replace the au.com.lastweekend.cgi.CGIServlet
GG> reference with the Jetty one. (You may also need to change the argument
GG> names)

GG> If you do need/want FastCGI then an overview is here...
GG> http://jen.sourceforge.net/cgi.html

GG> The svn repository is on sourceforge but the released version is in a
GG> private maven repository because I didn't take it any further.

GG> http://www.lastweekend.com.au/repository/au/com/lastweekend/jen/0.03/jen-0.03.jar

GG> http://www.lastweekend.com.au/repository/au/com/lastweekend/jen/0.03/jen-0.03-sources.jar

GG> Cheers,
GG> 	Grant.

GG> On Wed, 2007-10-31 at 12:12 +0200, Max Sevenfold wrote:
>> Hello Mika,
>> 
>> The best solution is FastCGI.
>> 
>> I know about 2 FastCGI servlets.
>> 
>> PHPJavaBridge (very big and complex)
>> Caucho Resin's FastCGI servlet is very good. but works with resin
>> only. (I think it is GPL)
>> 
>> It may take half day to port it to Jetty I think.
>> 

GG> -------------------------------------------------------------------------
GG> This SF.net email is sponsored by: Splunk Inc.
GG> Still grepping through log files to find problems?  Stop.
GG> Now Search log events and configuration files using AJAX and a browser.
GG> Download your FREE copy of Splunk now >> http://get.splunk.com/
GG> _______________________________________________
GG> Jetty-support mailing list
GG> Jetty-support <at> lists.sourceforge.net
GG> https://lists.sourceforge.net/lists/listinfo/jetty-support

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Bill Harten | 1 Nov 2007 16:05

Context path rules - documentation

Is there any documentation explaining context path rules and how the choice of handlers is made?

Thanks.  Bill

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
em garner | 1 Nov 2007 14:22

Re: (no subject)

Электронная реклама - старт Вашего бизнеса!
Качественно от профессионалов.
Cамые полные регулярно обновляемые базы (Москва,
Россия, СНГ) 
Cамое современное оборудование 
Спешите - есть еще возможность 
телефон в msk: - бЧб-07-2О

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Gmane