Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to configure the connection pool in the tomcat plugin?
How to configure the connection pool in the tomcat plugin? [message #176317] Fri, 04 August 2006 21:59 Go to next message
Eclipse User
Originally posted by: chenzhuang2000.126.com

The tomcat plugin is a mini version of apache tomcate server.
In the apache tomcat server we can configure the connection pool in the
server.xml.
But in the tomcat plugin, there is no way to configure this file.

So, how to configure a connection pool?
My version is org.eclipse.tomcat 4.1.13.

Thanks a lot!
Re: How to configure the connection pool in the tomcat plugin? [message #176329 is a reply to message #176317] Sat, 05 August 2006 18:55 Go to previous messageGo to next message
Bernhard Huemer is currently offline Bernhard Huemer
Messages: 2
Registered: July 2009
Junior Member
Hello,

once you've configured a server / target runtime the "plain"
project "Servers" contains various configuration files including
server.xml.

greets
Bernhard Huemer

chenzhuang wrote:
> The tomcat plugin is a mini version of apache tomcate server.
> In the apache tomcat server we can configure the connection pool in the
> server.xml.
> But in the tomcat plugin, there is no way to configure this file.
>
> So, how to configure a connection pool?
> My version is org.eclipse.tomcat 4.1.13.
>
> Thanks a lot!
Re: How to configure the connection pool in the tomcat plugin? [message #176364 is a reply to message #176329] Mon, 07 August 2006 10:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: chenzhuang2000.126.com

Thank you, Bernhard. But I don't quite understand. Do you mean I can
generate a server.xml when running? What's a server/target runtime? And what
is the "plain" project.


"Bernhard Huemer" <bernhard.huemer@gmail.com> wrote in message
news:eb37lc$e3h$1@utils.eclipse.org...
> Hello,
>
> once you've configured a server / target runtime the "plain"
> project "Servers" contains various configuration files including
> server.xml.
>
> greets
> Bernhard Huemer
>
> chenzhuang wrote:
>> The tomcat plugin is a mini version of apache tomcate server.
>> In the apache tomcat server we can configure the connection pool in the
>> server.xml.
>> But in the tomcat plugin, there is no way to configure this file.
>>
>> So, how to configure a connection pool?
>> My version is org.eclipse.tomcat 4.1.13.
>>
>> Thanks a lot!
Re: How to configure the connection pool in the tomcat plugin? [message #176385 is a reply to message #176364] Mon, 07 August 2006 14:57 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
When you create a Tomcat server, a Servers project will be created in
your workspace, if it doesn't already exist. Under this Servers
project, a folder is created that is associated with the server you just
created. In this folder will be 4 files imported from your Tomcat
installation, including server.xml. Adding projects to the server will
add <Context> elements to this file. You may manually make other
configuration changes to this server.xml as needed, including adding
child elements to the <Context>.

However, a better way to include context configuration is to create a
context.xml file in the META-INF folder of your project. The attributes
and child elements found in the context.xml will be merged into the
server.xml when it is copied to the "catalina.base" location when the
server is started.

Cheers,
Larry

chen wrote:
> Thank you, Bernhard. But I don't quite understand. Do you mean I can
> generate a server.xml when running? What's a server/target runtime? And what
> is the "plain" project.
>
>
> "Bernhard Huemer" <bernhard.huemer@gmail.com> wrote in message
> news:eb37lc$e3h$1@utils.eclipse.org...
>> Hello,
>>
>> once you've configured a server / target runtime the "plain"
>> project "Servers" contains various configuration files including
>> server.xml.
>>
>> greets
>> Bernhard Huemer
>>
>> chenzhuang wrote:
>>> The tomcat plugin is a mini version of apache tomcate server.
>>> In the apache tomcat server we can configure the connection pool in the
>>> server.xml.
>>> But in the tomcat plugin, there is no way to configure this file.
>>>
>>> So, how to configure a connection pool?
>>> My version is org.eclipse.tomcat 4.1.13.
>>>
>>> Thanks a lot!
>
>
Re: How to configure the connection pool in the tomcat plugin? [message #176416 is a reply to message #176385] Tue, 08 August 2006 08:48 Go to previous messageGo to next message
Eclipse User
Originally posted by: chenzhuang2000.126.com

Hi, Larry,

Thank you!
I think there is a misunderstand. Do you mean creating a tomcat server using
the windows->preference->server?
If so, it should be an external tomcat server existed, but I don't have an
external tomcat server only a tomcat plugin.
If not, what do you mean "when create a Tomcat server"?

"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:eb82f4$9ag$1@utils.eclipse.org...
> When you create a Tomcat server, a Servers project will be created in your
> workspace, if it doesn't already exist. Under this Servers project, a
> folder is created that is associated with the server you just created. In
> this folder will be 4 files imported from your Tomcat installation,
> including server.xml. Adding projects to the server will add <Context>
> elements to this file. You may manually make other configuration changes
> to this server.xml as needed, including adding child elements to the
> <Context>.
>
> However, a better way to include context configuration is to create a
> context.xml file in the META-INF folder of your project. The attributes
> and child elements found in the context.xml will be merged into the
> server.xml when it is copied to the "catalina.base" location when the
> server is started.
>
> Cheers,
> Larry
>
> chen wrote:
>> Thank you, Bernhard. But I don't quite understand. Do you mean I can
>> generate a server.xml when running? What's a server/target runtime? And
>> what is the "plain" project.
>>
>>
>> "Bernhard Huemer" <bernhard.huemer@gmail.com> wrote in message
>> news:eb37lc$e3h$1@utils.eclipse.org...
>>> Hello,
>>>
>>> once you've configured a server / target runtime the "plain"
>>> project "Servers" contains various configuration files including
>>> server.xml.
>>>
>>> greets
>>> Bernhard Huemer
>>>
>>> chenzhuang wrote:
>>>> The tomcat plugin is a mini version of apache tomcate server.
>>>> In the apache tomcat server we can configure the connection pool in the
>>>> server.xml.
>>>> But in the tomcat plugin, there is no way to configure this file.
>>>>
>>>> So, how to configure a connection pool?
>>>> My version is org.eclipse.tomcat 4.1.13.
>>>>
>>>> Thanks a lot!
>>
Re: How to configure the connection pool in the tomcat plugin? [message #176438 is a reply to message #176416] Tue, 08 August 2006 09:40 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
There are two pieces, "runtimes" and "servers". The "runtimes" are what
you create under Window -> Preferences -> Server -> Installed Runtimes.
A runtime points to the installation of a server from which is derived
a Library of classes to be added to projects which use this runtime.
This is how projects get access to the javax.servlet classes, among
others. With just runtimes, you can create and build projects, but
there won't be any "server" on which to run the project within Eclipse.

To run a Web Tools project within Eclipse, you will need to create a
"server". One is created by right-clicking in the Server's view and
selecting "New". For Tomcat servers, you pick an associated Tomcat
runtime which provides the location of the Tomcat installation from
which to define the server. It is this step that will create the
"Servers" project in your workspace, under which a folder is created for
each Tomcat server. That folder will contain the 4 files imported from
the Tomcat installation. Once you have a server defined, you can add
projects to it and run it to have those projects served.

Cheers,
Larry

chen wrote:
> Hi, Larry,
>
> Thank you!
> I think there is a misunderstand. Do you mean creating a tomcat server using
> the windows->preference->server?
> If so, it should be an external tomcat server existed, but I don't have an
> external tomcat server only a tomcat plugin.
> If not, what do you mean "when create a Tomcat server"?
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:eb82f4$9ag$1@utils.eclipse.org...
>> When you create a Tomcat server, a Servers project will be created in your
>> workspace, if it doesn't already exist. Under this Servers project, a
>> folder is created that is associated with the server you just created. In
>> this folder will be 4 files imported from your Tomcat installation,
>> including server.xml. Adding projects to the server will add <Context>
>> elements to this file. You may manually make other configuration changes
>> to this server.xml as needed, including adding child elements to the
>> <Context>.
>>
>> However, a better way to include context configuration is to create a
>> context.xml file in the META-INF folder of your project. The attributes
>> and child elements found in the context.xml will be merged into the
>> server.xml when it is copied to the "catalina.base" location when the
>> server is started.
>>
>> Cheers,
>> Larry
>>
>> chen wrote:
>>> Thank you, Bernhard. But I don't quite understand. Do you mean I can
>>> generate a server.xml when running? What's a server/target runtime? And
>>> what is the "plain" project.
>>>
>>>
>>> "Bernhard Huemer" <bernhard.huemer@gmail.com> wrote in message
>>> news:eb37lc$e3h$1@utils.eclipse.org...
>>>> Hello,
>>>>
>>>> once you've configured a server / target runtime the "plain"
>>>> project "Servers" contains various configuration files including
>>>> server.xml.
>>>>
>>>> greets
>>>> Bernhard Huemer
>>>>
>>>> chenzhuang wrote:
>>>>> The tomcat plugin is a mini version of apache tomcate server.
>>>>> In the apache tomcat server we can configure the connection pool in the
>>>>> server.xml.
>>>>> But in the tomcat plugin, there is no way to configure this file.
>>>>>
>>>>> So, how to configure a connection pool?
>>>>> My version is org.eclipse.tomcat 4.1.13.
>>>>>
>>>>> Thanks a lot!
>
Previous Topic:Custom code in HTML editor
Next Topic:WTP-ModelHandler
Goto Forum:
  


Current Time: Fri Aug 22 13:49:30 EDT 2014

Powered by FUDForum. Page generated in 0.08333 seconds