Re: cocoon actions implements threadsafe
On Fri, 2006-06-02 at 14:11 -0400, Doug Herold wrote: I am sorry I meant SingleThreaded. So you would think that this is a bottle neck. Unless your actions require heavy initialisation, implementing ThreadSafe or not will only result in minor performance differences (if you call multiple actions during the processing of a request, at best you'll see a difference of a few msecs -- its the difference between directly using an object or having to look it up from the component manager). So sure, implement ThreadSafe if possible, but if you have serious performance issues with your application they are likely to be somewhere else... Doug Herold wrote: Hi, I have noticed that some of our programers are using threadsafe when creating a class for actions. public *class* StudentSearchAction *extends* AbstractAction * implements* SingleThreaded { I read that you should never use SingleThreaded and that it was going to be depreciated. Our server has a very large load, but we were having problems with one user being able to see another users info. I think this is why the used this. We are now having problems with performance. Could this cause performance issues. Could someone point me to any good articles about the dangers of SingleThread classes and what to do instead of using them. Thanks in advance Doug -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SendMailTransformer - jars
Hi, Thanks for the info. I have removed the geronimo mail and activation jars from my cocoon application WEB-INF/lib directory and inserted the mail.jar. However I now get the following error. Please, do you know what it means? document email:exception email:messageUnable to locate provider for protocol: smtp/_email:message_ /email:exception /document Peter -Original Message- From: Peter Sparkes [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 juni 2006 20:59 To: users@cocoon.apache.org Subject: SendMailTransformer - jars Hi, I am having difficulties getting email working using the SendMailTransformer. I am using tomcat 5 and cocoon 2.1.9. The SendMailTransformer apidocs states that I have to put the following files into Cocoon lib directory: |mail.jar and ||activation.jar However at |http://java.sun.com/products/javamail/ I can't find the mail.jar. However I can get dsn.jar, imap.jar, mailapi.jar, pop3.jar and smtp.jar. Do I require some or all of these jars in place of the mail.jar? If not were can I get the mail.jar You can download it at http://java.sun.com/products/javamail/downloads/index.html Inside the zip you will find mail.jar. And indeed, get rid of the geronimo mail and activation jars from the cocoon distribution. They break the SendMailTransformer. Jasha - 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: SendMailTransformer - jars
Maybe a stupid question but did you restart cocoon after inserting mail.jar? And did you add the activation.jar from sun to WEB-INF/lib? -Original Message- From: Peter Sparkes [mailto:[EMAIL PROTECTED] Sent: zaterdag 3 juni 2006 13:54 To: users@cocoon.apache.org Subject: Re: SendMailTransformer - jars Hi, Thanks for the info. I have removed the geronimo mail and activation jars from my cocoon application WEB-INF/lib directory and inserted the mail.jar. However I now get the following error. Please, do you know what it means? document email:exception email:messageUnable to locate provider for protocol: smtp/_email:message_ /email:exception /document Peter -Original Message- From: Peter Sparkes [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 juni 2006 20:59 To: users@cocoon.apache.org Subject: SendMailTransformer - jars Hi, I am having difficulties getting email working using the SendMailTransformer. I am using tomcat 5 and cocoon 2.1.9. The SendMailTransformer apidocs states that I have to put the following files into Cocoon lib directory: |mail.jar and ||activation.jar However at |http://java.sun.com/products/javamail/ I can't find the mail.jar. However I can get dsn.jar, imap.jar, mailapi.jar, pop3.jar and smtp.jar. Do I require some or all of these jars in place of the mail.jar? If not were can I get the mail.jar You can download it at http://java.sun.com/products/javamail/downloads/index.html Inside the zip you will find mail.jar. And indeed, get rid of the geronimo mail and activation jars from the cocoon distribution. They break the SendMailTransformer. Jasha - 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]
Re: Completely lost with Lucene
Hello again,3 further questions- is there any documentation on how Lucene calculates the rank score?- 'rank' always starts with 0. How can I make it start with 1 ?- let's say, my input document is like that: lucene:document url="" href="http://google.com">http://google.comtitle lucene:store=true Linktext/title/lucene:document how can I afterwards access the value of 'title'?xsl:template match=search:hit a target=_blank href="" PROTECTED] xsl:value-of select=uri/ --instead, I want the value of the stored title tag, in this case 'Linktext' /a/xsl:templateThe doc (http://cocoon.apache.org/2.1/userdocs/concepts/xmlsearching.html) saysxsl:value-of select=search:[EMAIL PROTECTED]:name='title']/ , but that doesn't work. Any ideas? Thank you very muchMarco2006/6/2, [EMAIL PROTECTED] [EMAIL PROTECTED] :Thank you very much Peter. The problem is solved 2006/6/2, Peter Sparkes [EMAIL PROTECTED]: Hi,Suggest use the LuceneIndexTransformer as follows:map:match pattern=buildIndexmap:generate src=""> map:transform type=index/ map:serialize type=xml//map:matchmap:match pattern=karte.xml Generate a single file that contains all the data that you wantindexed as in section Input document for the LuceneIndexTransformer in http://wiki.apache.org/cocoon/LuceneIndexTransformermap:serialize type=xml/ /map:matchPeter Hi, I'd like to use the Lucene search in my page, but reading the docs at http://cocoon.apache.org/2.1/userdocs/concepts/xmlsearching.html and http://wiki.apache.org/cocoon/LuceneIndexTransformer does not really enlighten me. My case: The content of my pages is generated dynamically, getting the data from a mysql database. Something like that, map:match pattern=karte map:generate type=file src=""> map:transform type=sql map:parameter name=use-connection value=mysql-pool/ map:parameter name=lfdnr value={request-param:lfdnr}//map:transform map:transform src="">map:serialize type=html/ /map:match So calling e.g. the address http://localhost:8080/cocoon/karte?lfdnr=412 shows me the results of the page with the sql primary key 412 transformed via style.xsl. Lucene should be able to index the columns 'lfd_nr', 'venue' and 'description' (without indexing the other 6 columns of the table) and should give me the results, if those fields match my search query obviously, like shown above ( http://localhost:8080/cocoon/karte?lfdnr='pk' http://localhost:8080/cocoon/karte?lfdnr=%27pk%27 ) Declaring the LuceneIndexTransformer of my sitemap is the only thing I have completely understood from the wiki. ;) A little guidance would be appreciated very much. (+ what to write in which files, since that does not always emanate from the wiki) Thanks in advance Marco-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: SendMailTransformer - jars
Not at all - your question made me realise that I miss-understood your previous email and in addition to removing the geronimo jars I removed the Sun activation.jar. The company that hosts my cocoon application only restarts Tomcat at midnight so I will let you know tomorrow if it works. Thanks Peter Maybe a stupid question but did you restart cocoon after inserting mail.jar? And did you add the activation.jar from sun to WEB-INF/lib? -Original Message- From: Peter Sparkes [mailto:[EMAIL PROTECTED] Sent: zaterdag 3 juni 2006 13:54 To: users@cocoon.apache.org Subject: Re: SendMailTransformer - jars Hi, Thanks for the info. I have removed the geronimo mail and activation jars from my cocoon application WEB-INF/lib directory and inserted the mail.jar. However I now get the following error. Please, do you know what it means? document email:exception email:messageUnable to locate provider for protocol: smtp/_email:message_ /email:exception /document Peter -Original Message- From: Peter Sparkes [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 juni 2006 20:59 To: users@cocoon.apache.org Subject: SendMailTransformer - jars Hi, I am having difficulties getting email working using the SendMailTransformer. I am using tomcat 5 and cocoon 2.1.9. The SendMailTransformer apidocs states that I have to put the following files into Cocoon lib directory: |mail.jar and ||activation.jar However at |http://java.sun.com/products/javamail/ I can't find the mail.jar. However I can get dsn.jar, imap.jar, mailapi.jar, pop3.jar and smtp.jar. Do I require some or all of these jars in place of the mail.jar? If not were can I get the mail.jar You can download it at http://java.sun.com/products/javamail/downloads/index.html Inside the zip you will find mail.jar. And indeed, get rid of the geronimo mail and activation jars from the cocoon distribution. They break the SendMailTransformer. Jasha - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link: Project: SDX - System for Documents in XML
Hi! We, at ADNX, are proud to indicate you our SDX project in order to be listed with the Cocoon-related Projects: Name: SDX Full Title: System for Documents in XML Subject: SDX allows to retrieve and display XML documents. Combining the power of Cocoon and Lucene it offers to the application programmer two interfaces: the API-XSP and the API-Java offering all the functionalities for building a web documentary system. Many specific applications have been developed with this framework based on TEI Lite, EAD, BiblioML,... License: GPL URL: http://90plan.ovh.net/~adnx/sdx/ Other URL: http://adnx.org e-mail: mailto:[EMAIL PROTECTED]
Re: Cocoon 2.1.8 performance - server configuration and cocoon configuration
Does no one have advice on how to get Cocoon to run faster / use less resources? Regards Hans On 5/31/06, Jonas Lundberg [EMAIL PROTECTED] wrote: I have some performance problems running Cocoon 2.1.8, with the default build, and eXist added to that. The system is quite fast in my development environment, but the server I try to deploy it on gets problems. That system runs debian sarge, Tomcat 4.1.31-3. Sun java 5, with Heap 555M. We also run two other processes on the Tomcat, but these run quite all right, unless I also try to run Cocoon. The processor is quite weak. Does anyone have suggestions of how to get Cocoon to use less system resources? Also, I would like to hear about the servers you use to run Cocoon, because I am also going to order a new server (altough I still want to run Cocoon on the old server also). What should I get? Regards Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.1.8 performance - server configuration and cocoon configuration
Not without more details. I would suggest you get YourKit or some other profiler and see what is going on. Ralph Jonas Lundberg wrote: Does no one have advice on how to get Cocoon to run faster / use less resources? Regards Hans On 5/31/06, Jonas Lundberg [EMAIL PROTECTED] wrote: I have some performance problems running Cocoon 2.1.8, with the default build, and eXist added to that. The system is quite fast in my development environment, but the server I try to deploy it on gets problems. That system runs debian sarge, Tomcat 4.1.31-3. Sun java 5, with Heap 555M. We also run two other processes on the Tomcat, but these run quite all right, unless I also try to run Cocoon. The processor is quite weak. Does anyone have suggestions of how to get Cocoon to use less system resources? Also, I would like to hear about the servers you use to run Cocoon, because I am also going to order a new server (altough I still want to run Cocoon on the old server also). What should I get? Regards Hans - 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]