Search:

Type: Posts; User: lovelesh

Page 1 of 6 1 2 3 4

Search: Search took 0.06 seconds.

  1. Calls would be multi-threaded, but you will have...

    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)
  2. I suggest using one of the following ways: 1....

    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...
  3. Replies
    1
    Views
    1,511

    You can use your application specific logging...

    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:
  4. Replies
    7
    Views
    2,197

    Everything looks fine in your code, so can't say...

    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...
  5. Replies
    7
    Views
    2,197

    Please put log4j.properties file in...

    Please put log4j.properties file in WEB-INF/classes folder.
    It should work without any problem :-)
  6. Replies
    7
    Views
    2,197

    Your log level is set to be debug, where as you...

    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
  7. Replies
    5
    Views
    3,085

    just try to see the log file while your...

    just try to see the log file while your application is processing requests.
  8. Replies
    8
    Views
    1,209

    I completely agree to this.

    I completely agree to this.
  9. Replies
    8
    Views
    1,209

    I mean nullify the reference variables so that...

    I mean nullify the reference variables so that referenced objects become candidates for garbage collection.
  10. Replies
    8
    Views
    1,209

    Its near to impossible to tell how to reduce the...

    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...
  11. Replies
    2
    Views
    5,469

    Code is perfectly fine. Probably there is some...

    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...
  12. Replies
    8
    Views
    1,615

    Ideally, the reader of output file should not be...

    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...
  13. Replies
    8
    Views
    1,615

    Could you please paste the relevant code, so that...

    Could you please paste the relevant code, so that we can see what you have done.
  14. Replies
    3
    Views
    1,393

    As JosAH rightly said, compiler would not...

    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:...
  15. Replies
    5
    Views
    3,085

    This problem does not relates to log4j....

    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...
  16. Replies
    8
    Views
    1,615

    Fubarable is correct. Thats the way to do it.

    Fubarable is correct. Thats the way to do it.
  17. Replies
    1
    Views
    1,424

    You can start with tutorial on w3schools @ XML...

    You can start with tutorial on w3schools @ XML DOM Parser
  18. Replies
    9
    Views
    7,207

    Please go through this example code. PDF Text...

    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.
  19. Replies
    3
    Views
    1,640

    You can do that programatically. For this you...

    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...
  20. Use addActionListener api of JCheckBox for this....

    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...
  21. Why don't you show us what you have done so far?

    Why don't you show us what you have done so far?
  22. Are you sure you close all the streams and other...

    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...
  23. Is your program behaving in this manner: After...

    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...
  24. Replies
    1
    Views
    1,977

    Convert the number to a string, parse the string...

    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? :)
  25. Replies
    4
    Views
    1,474

    But why do you want to tell java that its a...

    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.

    It...
Results 1 to 25 of 139
Page 1 of 6 1 2 3 4