Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6375289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:35:47+00:00 2026-05-25T01:35:47+00:00

We are using OpenEJB clients that connect to one OpenEJB server container. The OpenEJB

  • 0

We are using OpenEJB clients that connect to one OpenEJB server container. The OpenEJB servers are managed by Corosync and Pacemaker for fail-over operation. Whenever an OpenEJB instance fails (caused by network, hardware, JVM or other problems) Corosync+Pacemaker starts another OpenEJB server instance in another machine. The process is relatively fast so that this is not a problem for our use cases.

Although OpenEJB provides a native fail-over mechanism, we still chose to manage it with our own mechanism, because that way we can better control the client. Everything is working as expected, except for the client logging that is too verbose. We would like to either turn it off or fine tune it in order to disable connection failure messages, such as this:

22/08/2011 14:06:23 org.apache.openejb.client.StickyConnectionStrategy connect
AVISO: Failover: Cannot connect to server(s): ejbd://192.168.1.5:4201 Exception: Cannot connect to server ‘ejbd://192.168.1.5:4201’. Check that the server is started and that the specified serverURL is correct.. Trying next.

I’ve already tried to decrease the logging level for log4j in the OpenEJB client, but I failed. According to the log4j documentation and to this post it should be a matter of setting the desired level to “error” or “fatal”. The question is, what is the category name?

I’ve already tried:

  • p.put(“log4j.category.OpenEJB.client”, “error”);
  • p.put(“log4j.category.OpenEJB”, “error”);

But nothing has changed. So, what property do I need to use to turn those WARN messages off?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:35:47+00:00Added an answer on May 25, 2026 at 1:35 am

    Just to put the information together. In order to control the logging mechanism for OpenEJB client one has to configure the regular Java Logger:

    //Get the logger
    Logger logger=Logger.getLogger("OpenEJB.client");
    
    //Change its behavior...
    logger.setLevel(Level.SEVERE);
    

    That’s it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm using container managed transactions in OpenEJB and Hibernate and I have a
Using emacs on Ubuntu 11.10. I want to connect to a SQL Server database
I have a problem. I'm learning JPA. I'm using embedded OpenEJB container in unit
I have a specific problem with an unit test using embedded OpenEJB container. I
Embedding OpenEJB in a TestCase using javax.ejb.embeddable.EJBContainer. EJBContainer container = EJBContainer.createEJBContainer(); always returns null.
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C#, I need a class called User that has a username, password, active
Using jQuery, one can easily find out whether a particular element is visible using
Using mercurial, I've run into an odd problem where a line from one committer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.