Re: Datasource from pool

2003-03-06 Thread arturl


> > Generally all connections are returned. But increasing number of
accessing
> > the pool (by multiplying number of requested xsp pages) results in pool
> > blocking. Is it a normal situation?
>
> Sure, if you have a pool of 10, you may have 10 concurrent
> users. Every additional user is blocked until a connection is returned
> to the pool.
Yes, I understand it. I just wonder, why there's a hangup of the pool  if
all connections should be returned.

>OTOH it should only be fractions of a second that a
> connection is used.
> Maybe you should just increase the number of
> connections in your pool.
I'm trying on that. BTW - is there a formula on counting the optimal size of
the pool (taking into account number of concurrent connections)?

Artur



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: setCharacterEncoding in jsp page through cocoon?

2003-03-05 Thread arturl
Sorry - it was a question.
I don't know how to make the response sent to client contain a charset
attribute in Content-type header.

Artur
- Original Message -
From: "Tsui, Alban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 3:28 PM
Subject: RE: setCharacterEncoding in jsp page through cocoon?


What do you mean? How would I do that?

-Original Message-
From: arturl [mailto:[EMAIL PROTECTED]
Sent: 05 March 2003 14:25
To: [EMAIL PROTECTED]
Subject: Re: setCharacterEncoding in jsp page through cocoon?


Do you, how to add charset attribute to response Content-Type http header?
The action doesn't change the header.

Artur

- Original Message -
From: "Leszek Gawron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 2:47 PM
Subject: Re: setCharacterEncoding in jsp page through cocoon?


> On śro, mar 05, 2003 at 08:37:57 -0500, Tsui, Alban wrote:
> > Could you tell me how to use the cocoon SetCharacterEncodingAction ?
> Declare it:
> 
src="org.apache.cocoon.acting.org.apache.cocoon.acting.SetCharacterEncodingA
ction">
> utf-8
> 
>
> and then use it just like yours
>
> yo ucan also override the default parameter by :
>
> 
> 
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: setCharacterEncoding in jsp page through cocoon?

2003-03-05 Thread arturl
Do you, how to add charset attribute to response Content-Type http header?
The action doesn't change the header.

Artur

- Original Message -
From: "Leszek Gawron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 2:47 PM
Subject: Re: setCharacterEncoding in jsp page through cocoon?


> On śro, mar 05, 2003 at 08:37:57 -0500, Tsui, Alban wrote:
> > Could you tell me how to use the cocoon SetCharacterEncodingAction ?
> Declare it:
> 
src="org.apache.cocoon.acting.org.apache.cocoon.acting.SetCharacterEncodingA
ction">
> utf-8
> 
>
> and then use it just like yours
>
> yo ucan also override the default parameter by :
>
> 
> 
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource from pool

2003-03-05 Thread arturl
> >
> >
>
> ESQL *should* be safe. Look at the logs (set log level to "debug"!)
> and try to find lines indicating that the connection is returned to
> the pool.
>

Generally all connections are returned. But increasing number of accessing
the pool (by multiplying number of requested xsp pages) results in pool
blocking. Is it a normal situation?
Shouldn't  the connections be returned anyway?

Artur


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Datasource from pool

2003-03-05 Thread arturl


> On 04.Mar.2003 -- 06:10 PM, arturl wrote:
> > Hello,
> >
> > My cocoon app is hanging on mysql database access.
> > I've got following messages in core.log:
> > DEBUG   (2003-03-04) 18:01.38:704   [core.datasources.foo] (/foo.html)
> > Thread-268/ResourceLimitingPool: Blocking until a Poolable is available.
> > Thread: Thread-268

>
> You sure return all datasources back to the pool, don't you.

> IOW which components that you have use the datasource? Stock
> components should be safe, your own may have a leak?
>
I use the datasource on my custom xsp pages by esql logicsheet:

  connectionName

Can you give me a clue how to ensure returning the datasource to the pool
(and where to check for it)?

Artur




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Datasource from pool

2003-03-04 Thread arturl
Hello,

My cocoon app is hanging on mysql database access.
I've got following messages in core.log:
DEBUG   (2003-03-04) 18:01.38:704   [core.datasources.foo] (/foo.html)
Thread-268/ResourceLimitingPool: Blocking until a Poolable is available.
Thread: Thread-268

I use this driver class:
com.mysql.jdbc.Driver
Datasource defined in cocoon.xconf:
 

  

jdbc:mysql://localhost/base?useUnicode=true&characterEncoding=iso
-8859-2

  

When more pages using this coonection are requested, threads are waiting and
maxThreads parameter is exceeded.

What should I do and when to look for more debug information?

Artur


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: encoding

2003-03-03 Thread arturl
> > But it seems setting only charset attribute in html  tag and not
> > infuencing
> > http header.
> >
> > Artur
>
> Use action org.apache.cocoon.acting.SetCharacterEncodingAction
>
Not helping either. The Content-Type header contains no information about
encoding.

Artur




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: encoding

2003-02-28 Thread arturl
But it seems setting only charset attribute in html  tag and not
infuencing
http header.

Artur

- Original Message -
From: "BOCEK Michal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 12:15 PM
Subject: RE: encoding


> Hi
> this feature set in sitema.xmap on serializers.
>
>  name="html" pool-grow="4" pool-max="32" pool-min="4"
> src="org.apache.cocoon.serialization.HTMLSerializer">
>   1024
>   -//W3C//DTD HTML 4.0 Transitional//EN
>   windows-1250
> 
>
> Michal
>
> -Original Message-
> From: arturl [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 12:22 PM
> To: [EMAIL PROTECTED]
> Subject: encoding
>
>
> Hello,
>
> What component (and what configuration is needed) is responsible for
setting
> the Content-Type http response header with charset specified?
>
> Thx,
> Artur
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



encoding

2003-02-28 Thread arturl
Hello,

What component (and what configuration is needed) is responsible for setting
the Content-Type http response header with charset specified?

Thx,
Artur




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



caching

2003-02-27 Thread arturl
Hello,
I've asked this question some time ago, but got no answer.
Is it possible to cache the content produced from file generator fetching
data from some external url for specified time?
I'd like the generator not to check last modification date (and so
connecting to the external server) but serve content from internal cache.

Thanks,
Artur




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



caching external data

2003-02-19 Thread arturl
Hi,

is it possible to cache result of generator fetching data from external url
for specified time?
So, I want to xml resulted from
  http://external"/>
be cached for 1 hour and no connection with external host in that hour.


Artur




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Session managing problem

2003-02-11 Thread arturl
Hello,
I try to merge app in PHP with cocoon in the same way.
The problem is passing cookies, so if you wouldn't mind sending me more info
about this I would appreciate.

Artur

> I do also access my webapp via jsp pages, that return XML
> content and let cocoon do the presentation issues.
> works fine and reasonably perormant so far.
>
> I manage to pass session cookies through cocoon and
> i'm happy with it.
>
> we (Lajos and me) implemented a new protocol handler for this
> purpose.
>
> more info -> send me a note
> hussayn
>
> Nesto wrote:
> > Hi!
> >
> > I have a problem with the session managing.
> > I'm trying to write a user interface of an existing system using cocoon
> > as publishing framework.
> > The system is composed of a set of JSPs that generates xml data from a
> > database.
> > So the pipelines in the sitemap I wrote are all of this type:
> >
> > 
> >
> >  
> >   > src="http://remoteHost:8080/remoteApp/{../1}.jsp{requestQuery}";
> > mime-type="text/xml"/>
> >  
> >  
> >
> > 
> >
> > The REMOTE application manage itself the user sessions, but i don't how
> > i have to modify my sitemap in order to let client and the remote
> > application exchange session informations.
> > In this moment the presence of Cocoon between client and Remote App
> > causes the loss of session information (accessing through IE directly, I
> > can see the correct xml data)
> >
> > I read the documentation on Cocoon site, and on Wiki, and I found
> > something that looks interesting: the matchers of type cookie and
> > sessionstate.
> > But the problem is that I really haven't understand how I can use them.
> >
> > Thanks for your answers!
> >
> > Nesto
> >
> >
>
> --
> Dr. Hussayn Dabbous
> SAXESS Software Design GmbH
> Neuenhöfer Allee 125
> 50935 Köln
> Telefon: +49-221-56011-0
> Fax: +49-221-56011-20
> E-Mail:  [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




caching

2003-02-07 Thread arturl
Hi,

Is is possible to cache the output of FileGenerator for specified time, not
by the last modification date of the source file?
I'm trying to cache content generated from external urls - how can I achieve
that?

--
Artur




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




namespace attribute

2003-02-03 Thread arturl
When I transform sources with the CInclude transformer, I get the
xmlns:cinclude="http://apache.org/cocoon/include/1.0";
attribute with the first result element.
Is it possible to get rid of that?

--
Artur




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Problem with FormValidatorAction

2002-12-16 Thread arturl
When trying to use FormValidatorAction as specified in samples I get the
following error:

Line 388, column 49:  constructor XSPFormValidatorHelper(java.lang.String,
boolean, org.apache.avalon.framework.logger.Logger,
org.apache.cocoon.environment.SourceResolver, java.lang.String) not found in
class
org.apache.cocoon.components.language.markup.xsp.XSPFormValidatorHelper
Line 0, column 0:
1 error

What can cause the problem?

Cocoon 2.0.4 - Tomcat 4.1.12 - j2sdk1.4.1 - Slackware

Artur Laga







-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




cookies with generator

2002-08-31 Thread arturl

Hi,
I have to include a page using html generator. But that site needs soem data
from my browser cookie.
Is it possible to send cookie using generator? If not, how to deal whith tis
issue?

Artur




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>