Type: Posts; User: lovelesh
Search: Search took 0.01 seconds.
- 07-07-2011, 06:28 AM
Calls would be multi-threaded, but you will have to make sure that your code is synchronized (i.e no two calls are simultaneously changing critical data)
- 07-07-2011, 06:20 AM
I suggest using one of the following ways:
1. Use Quartz scheduler to schedule your jobs (if tasks executes successfully, mark the status of that day's task in a status file, it will tell you...
You can use your application specific logging configuration.
This article: How do i use my own log4j properties or xml file in JBoss - My Wiki - Planet JBoss Community shows you how to do it:
- 06-27-2011, 10:15 AM
Everything looks fine in your code, so can't say much without running it.
Just try 1 more thing: remove init param from web.xml and remove PropertyConfigurator related code from your Servlet. As you...
- 06-27-2011, 09:50 AM
Please put log4j.properties file in WEB-INF/classes folder.
It should work without any problem :-)
- 06-27-2011, 08:17 AM
Your log level is set to be debug, where as you are using info level statements in your statement.
Reset your log level to info and try again.
i.e. --> log4j.rootLogger=info, R
just try to see the log file while your application is processing requests.
I completely agree to this.
I mean nullify the reference variables so that referenced objects become candidates for garbage collection.
Its near to impossible to tell how to reduce the memory without looking at the code. A proper review would be required to tell something.
However, make sure you are:
1. creating objects only at...
Code is perfectly fine.
Probably there is some error here:
Change this line to some hard-coded filename and then see the result.
It works, so look how to resolve this error. Log4j is...
Ideally, the reader of output file should not be concerned with the order of attributes. I think AttributeNode can be used instead of setAttribute.
See the example in this link : java - order the...
Could you please paste the relevant code, so that we can see what you have done.
As JosAH rightly said, compiler would not complain about anything and your program would compile successfully.
In order to access base class version, you will have to make a call like this:...
This problem does not relates to log4j.
Actually, when you restart your machine, your java process (jvm) gets terminated abruptly. This is like you killed a process. So, your process never gets a...
Fubarable is correct. Thats the way to do it.
You can start with tutorial on w3schools @ XML DOM Parser
Please go through this example code.
PDF Text Parser: Converting PDF to Text in Java using PDFBox
You will need to fine tune it as per your requirement.
You can do that programatically.
For this you need to know the maximum lenth of each column value.
If you know the maximum column length, then keep adding the values to a StringBuilder. Before...
- 04-11-2011, 12:26 PM
Use addActionListener api of JCheckBox for this.
You will have to provide an implementation of ActionListener interface.
In the actionPerformed method of ActionListener implementation, you need...
- 04-11-2011, 10:35 AM
Why don't you show us what you have done so far?
- 04-10-2011, 08:55 AM
Are you sure you close all the streams and other handles to the file after writing to the file?
Just check the code and make sure you are closing all the streams.
Generally, this problem occurs...
- 04-10-2011, 08:49 AM
Is your program behaving in this manner:
After restart of machine, run your program and see if it works?
If it works only for the first time and from second time onwards it starts giving the...
Convert the number to a string, parse the string character by character and keep inserting each character in the target array.
Isn't it simple? :)
But why do you want to tell java that its a negative number.
For jvm a number is a number, no matter positive or negative. jvm is not bothered till the time number is valid and within range.
Results 1 to 25 of 139