473,657 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cocoon sql transformer causing squid timeout

Hopefully someone can provide a solution to this rather annoying
problem - we have a Cocoon pipeline which ends thus:

<!-- build the sql for insert and final stage of select -->
T1 <map:transfor m type="xslt" src="stylesheet s/buildsql2.xsl"/>

<!-- run the sql -->
<map:transfor m type="sql">
<map:paramete r name="*****" value="****"/>
</map:transform>

<!-- build the response -->
T2 <map:transfor m type="xslt" src="stylesheet s/buildresult.xsl "/>

<!-- send the response -->
<map:serializ e/>

The SQL queries in Transform T1 execute either SELECT or INSERT queries
on a large meta-database, so the following performance characteristics
apply:

1. SELECT statements take a long time to
'render' to the final xml result- i.e. Transform T2.

2. INSERT statements take a long time to
execute in the first place i.e. Transform T1.

Now, if transform T2 takes a long time to execute (sometimes in the
region of hours), there is no problems, the client will happily sit and
wait for the data. Transform T1 on the other hand will cause the squid
proxy (though which cocoon is accessed) to give a timeout error back to
the client after x mins. The database INSERT however completes
succesfully, regardless of this error.

It seems apparent from this situation that a cocoon serializer will
'stream' data back to the client through the proxy - but the transform
steps must wait for well-formed XML before contacting the client. Is
there any way of keeping a connection 'busy' while waiting for this
transform (T1) to complete?

PS Sadly we cannot change the timeout limit on the Squid proxy, which
would have rendered this message redundant.

Dec 7 '05 #1
0 1336

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1787
by: Adam | last post by:
Hi! I'm trying to do a login form in cocoon. Login data are taken from MySQL, but before the data are checked cocoon throws such an error: org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: file:/F:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/cocoon/portal/sitemap.xmap doesn't exist. Do you have any suggestions where to check for the error? Why does the
1
2050
by: Jawahar | last post by:
Hi All.. Currently in our application, we are using Serlvet as Controller,Jsp to View,BusinessLogic in EJB. We planned to implement Cocoon frame work in our existing application. Is this Possible..? I already worked on sample xml,xslt,but i need an example where servlet or JSP would call Cocoon application to display it in the browser.
0
1722
by: wai | last post by:
hi all, i running cocoon 2.1.1 with websphere 5, i have a problem related to xsp cinclude. everything after my first cinclude statement, it become bank. i been tested the cocoon cinclude sample code, it working fine in tomcat, but not websphere. any ideas?
0
1246
by: Gerald Aichholzer | last post by:
Hi NG, I'm trying to process the following document using cocoon's XInclude-transformer: <demos> <demo> <dir>demo20040429</dir> <date>11.05.04 10:01</date> <xi:include parse="xml"
0
1465
by: Hugh Sparks | last post by:
If I configure and use two different fragment extractors on the same XML document, how can I write xslt template match patterns that distinguish which elements these fragments replaced? Details: My xml document contains, among other elements, two distinct elements that need external java processing by a custom-made Cocoon serializer that converts the contents of these elements to "other stuff".
4
7860
by: fis | last post by:
Hi all, I've problem because there are needed break lines in my texts on the web site but i can't do it :( My pipeline looks like: XMS -> I18N -> XSLT -> HTML I have lot of texts in my "languages" files and these are describes for things on my website. Example text looks like this:
0
2312
by: mcv | last post by:
I'm currently learning to use Cocoon, and although I really like it, there are a couple of things that don't seem to be explained very well. I've seen lots of articles explaining really complicated stuff with actions and selectors and stuff, but I can't find a simple explanation of how variables in the sitemap actually work. Can anyone direct me to a good article on that? Another problem I'm having is that for some strange reason, my...
1
2867
by: Leonardo Ivan Torres Ochoa | last post by:
Hello friends I have a program client done in C # that invokes to a Web service, the program client uses proxy squid, but this return Timeout returns Any idea ? Thank you .. Leonardo..
0
1366
by: Hugh Field-Richards | last post by:
Hi This was original posted only on the Cocoon Users Group last year but Paloose is now reasonably mature enough for exposure on this forum. Paloose is a simplified (much simplified) version of Cocoon using PHP5. Cocoon is a means of building Web Sites using a pipelined XML/XSLT/CSS approach based on sitemaps. I have used Cocoon for
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.