Re: Is DiskFileItemFactory Thread Safe?

2010-02-04 Thread Adrian Crum
This is good advice. I have seen innumerable emails that follow this same format: "I want to change x code because it could be a performance problem." If you were having performance problems, then any number of code profilers will tell you where the bottleneck is. Just looking at a code fragment

Re: Is DiskFileItemFactory Thread Safe?

2010-02-04 Thread evebill8
Thanks! I feel the same. I am using Java 5, and I do not see any performance issue yet, but it just bother other engineers when they see the code. I look at the source, the 2 main vars will be used are this.sizeThreshold = sizeThreshold; this.repository = repository; They ar

Re: Is DiskFileItemFactory Thread Safe?

2010-02-04 Thread Martin Cooper
Unless you're using a truly antique version of Java, the cost of repeatedly instantiating DiskFileItemFactory is entirely negligible. The constructor does next to nothing, and the JVM already optimizes repeated class instantiations almost out of existence. If you are seeing performance issues with

Re: Which XSD file can I use to validate my SCXML before I try to use it?

2010-02-04 Thread Rahul Akolkar
On Thu, Feb 4, 2010 at 10:01 PM, Michael McCarthy wrote: > I have a need to validate my XML file prior to trying to create an instance > of it. > So, I took the latest schema files provided by w3c and make some tweaks so > that it would accept > syntax supported by Commons SCXML. > > It currentl

RE: Which XSD file can I use to validate my SCXML before I try to use it?

2010-02-04 Thread Michael McCarthy
I have a need to validate my XML file prior to trying to create an instance of it. So, I took the latest schema files provided by w3c and make some tweaks so that it would accept syntax supported by Commons SCXML. It currently passes validation for XML supported by Commons SCXML, but it may not

Re: Which XSD file can I use to validate my SCXML before I try to use it?

2010-02-04 Thread Rahul Akolkar
On Thu, Feb 4, 2010 at 6:15 PM, Michael McCarthy wrote: > Hello, > > I am looking for a way to validate my SCXML document before I try to > instantiate a state machine from it using Commons SCXML. > > I have tried to use various versions of the XSD provided in the W3C > SCXML spec (including the l

Which XSD file can I use to validate my SCXML before I try to use it?

2010-02-04 Thread Michael McCarthy
Hello, I am looking for a way to validate my SCXML document before I try to instantiate a state machine from it using Commons SCXML. I have tried to use various versions of the XSD provided in the W3C SCXML spec (including the latest version at: http://www.w3.org/TR/scxml/) but I am finding d

[configuration] Re: Space or single quote as a value in properties files

2010-02-04 Thread Oliver Heger
Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = " " could I use the double quotes to do that? From looking at the code

Is DiskFileItemFactory Thread Safe?

2010-02-04 Thread evebill8
I have a servlet that will handle few hundread thousand requests per day. I am using the commons FileUpload to loop thru the fields and file items. Here is the code public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {

Space or single quote as a value in properties files

2010-02-04 Thread Asterios Katsifodimos
Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = " " could I use the double quotes to do that? thank you, -- Asterios Katsifodimos INRIA Saclay France

Re: [NET] Require information about Apache commons net library

2010-02-04 Thread Valentin Rocher
Le 03/02/2010 05:57, Harshwardhan Gunjotikar a écrit : Hi All, We are thinking of using Apache commons net library in our project to support FTP operations. We have some specific requirements and we tried to find out if the library supports those. However, we couldn't find any concrete informati