Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: murthypatnaik
  • Order by date
  1. murthypatnaik

    How to Update DB in onMessage(MDB) when QueueSession is rollbacked?

    Hi, I have MDB, in onMessage(), I am sending an email. This is all in try block. In catch(), I am rollbacking qSession, as it would go back agin to queue. If the session is rollbacked, I need to update database with status, for this I am calling EJB. Here the problem is, After rollback, this ejb...
  2. murthypatnaik

    Log4J log file size

    yes, this is the properties file which Log4J uses! Anyway, I have figuredout the problem, as RollingFileAppender default max file size is 10mb, so it is rollingover for every 10mb. Thanks, Murthy P
  3. murthypatnaik

    Log4J log file size

    Hi, I disabled the log file rotation as, ************************************* log4j.appender.A2=org.apache.log4j.RollingFileAppender //log4j.appender.A2.MaxFileSize=1000KB //log4j.appender.A2.MaxBackupIndex=30 log4j.appender.A2.layout=org.apache.log4j.PatternLayout...
  4. murthypatnaik

    How to know which managed server is currently hosted JMS server byJMX?

    I got the solution, Following is the solution..thanks! ************************************** ServerMBean candidateServer = null; MigratableTargetMBean migratableTarget = null; TargetMBean[] targets = jmsServer.getTargets(); if(targets != null && targets.length > 0) {...
  5. murthypatnaik

    How to know which managed server is currently hosted JMS server byJMX?

    No, I have mentioned like following ****************** WebLogicObjectName aObjectName = new WebLogicObjectName("JMS0","JMSServer","patnaikJMS"); JMSServerMBean jmsServer = (JMSServerMBean)home.getMBean(aObjectName); currentServer = jmsServer.getTargets()[0].getName()...
  6. murthypatnaik

    How to know which managed server is currently hosted JMS server byJMX?

    Hi, We have JMS clustering across two managed servers in weblogic 8.1. Initially JMS server is targtted to first managed server. After that, I manually migrated JMS server to second managed server. In this scenario, How to know which managed server is currently hosted JMS server in pogrammatic...
  7. murthypatnaik

    How to know which managed server is currently hosted JMSserver byJMX?

    Hi, We have JMS clustering across two managed servers in weblogic 8.1. Initially JMS server is targtted to first managed server. After that, I manually migrated JMS server to second managed server. In this scenario, How to know which managed server is currently hosted JMS server in pogrammatic...
  8. murthypatnaik

    Urgent: Regarding Backup log file mechanism?

    Hi Tim, I suggested the same, but this is the requirement we have. I need to find out some solution for this. Thanks, Murthy Patnaik
  9. murthypatnaik

    Urgent: Regarding Backup log file mechanism?

    Hi, I am using same file for weblogic server log and Log4J log. Weblogic has file backup mechanism, if file exceeds 100KB. How to use the same for log4J. Because, If I am not specify the maxFileSize in log4J properties, It will keep on writing to same file, weblogic unable to move this file as...
  10. murthypatnaik

    Log4J log statements replacing by Weblogic Server log

    It is the requirement to have single log file, and only weblogic server RUNNING message is replacing old log4j logger statements. Can you give suggestion in using same file. Thanks, Murthy P
  11. murthypatnaik

    Log4J log statements replacing by Weblogic Server log

    Hi, We are using same log file for both weblogic server log and log4J log. Both are behaving as normal except in one situation, that is, We have Log4J logger messages in startup class, after writing these messages, we have a message from weblogic syaing Server is in RUNNING mode. This message...
  12. murthypatnaik

    How to assign Log4J logging level to individual Class?

    public static void logDebugMessage(String msg, String className, String methodName) { //loadLog4JProperties("ERROR"); ILogger logger = LoggerFactory.getLogger(className); logger.debug(methodName + " - " + msg); logger.error(methodName+ " - "+msg); } this is what you are...
  13. murthypatnaik

    How to assign Log4J logging level to individual Class?

    I am using Properties instead of log4j.properties. Here sample is the package, which is to be WARN level. I am not successful in this case. Please help me in this regard. Following is the Properties I am setting... ________________________________________________ Properties props = new...
  14. murthypatnaik

    How to assign Log4J logging level to individual Class?

    I have tried this option, but everytime this is taking rootlogger, as log4j.rootLogger=ERROR, A1 After that, as you specified, I kept app as, log4j.logger.samplePackage.sampleClass=DEBUG, A1 But this is not working as expected, as rootLogger is only taking considerarion. Please help me in...
  15. murthypatnaik

    How to assign Log4J logging level to individual Class?

    How to assign logging level(info, debug, error, fatal) to individual classes? Normally, logging level is applicable to app level. But I need to change the logging level to each class on demand. Please help me in this regard. Thanks, Murthy P

Part and Inventory Search

Back
Top