Package org.jboss.logging

Examples of org.jboss.logging.Logger


      String username = args[0];
      char[] password = args[1].toCharArray();
      String serviceName = args.length == 3 ? args[2] : "srp-test/SRPServerInterface";

      // Set up a simple configuration that logs on the console.
      Logger root = Logger.getRoot();
      root.setLevel(XLevel.TRACE);
      root.addAppender(new ConsoleAppender(new PatternLayout("%x%m%n")));

      InitialContext ctx = new InitialContext();
      SRPServerInterface server = (SRPServerInterface) ctx.lookup(serviceName);
      System.out.println("Found SRPServerInterface, "+server);
      SRPParameters params = server.getSRPParameters(username);
View Full Code Here


   }

   protected void setUp() throws Exception
   {
      // Set up a simple configuration that logs on the console.
       Logger root = Logger.getRoot();
       root.setLevel(XLevel.TRACE);
       root.addAppender(new WriterAppender(new PatternLayout("%x%m%n"), System.out));
       Util.init();
       NDC.push("S,");
       server = new SimpleSRPServer(password, "123456");
       NDC.pop();
       NDC.remove();
View Full Code Here

   SRPClientSession client;
  
   TestJCEIntegration() throws Exception
   {
      // Set up a simple configuration that logs on the console.
      Logger root = Logger.getRoot();
      root.setLevel(XLevel.TRACE);
      root.addAppender(new WriterAppender(new PatternLayout("%x%m%n"), System.out));
      Util.init();
      NDC.push("S,");
      server = new SimpleSRPServer("secret".toCharArray(), "123456");
      NDC.pop();
      NDC.remove();
View Full Code Here

   }
  
   protected void setUp() throws Exception
   {
      // Set up a simple configuration that logs on the console.
      Logger root = Logger.getRoot();
      root.setLevel(XLevel.TRACE);
      root.addAppender(new ConsoleAppender(new PatternLayout("%x%m%n")));
      Util.init();
      NDC.push("S,");
      server = new TstImpl(password, "123456");
      NDC.pop();
      NDC.remove();
View Full Code Here

   }
  
   protected void setUp() throws Exception
   {
      // Set up a simple configuration that logs on the console.
      Logger root = Logger.getRoot();
      root.setLevel(XLevel.TRACE);
      root.addAppender(new ConsoleAppender(new PatternLayout("%x%m%n")));
      Util.init();
      NDC.push("S,");
      server = new TstImpl(password, "123456");
      NDC.pop();
      NDC.remove();
View Full Code Here

    * JBAS-3463, persist custom mbean attributes using the default setup
    * of the AttributePersistenceService / XMLAttributePersistenceManager.
    */
   public void testPersistCustomMBeanAttributes() throws Exception
   {
      Logger log = getLog();
      log.info("+++ testPersistCustomMBeanAttributes");
     
      String testService = "xmbean-custom-attr-pers.sar";
      String customMBean = "jboss.test:service=ServiceUsingCustomAttribute";
     
      MBeanServerConnection server = super.getServer();
View Full Code Here

    *
    * @see org.jboss.test.jmx.xmbean.XMLAttributePersistenceManagerTestService
    */
   public void testWriteToPathNameContainingSpaces() throws Exception
   {
      Logger log = getLog();
      log.info("+++ testWriteToPathNameContainingSpaces");

      String testService = "xmlapm-xmbean.sar";
     
      try
      {
View Full Code Here

   {
      drainQueue();
      drainTopic();

      final int iterationCount = getIterationCount();
      final Logger log = getLog();

      Thread sendThread =
         new Thread()
         {
            public void run()
            {
               try
               {

                  TopicSession session = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
                  Topic topic = (Topic)context.lookup(TEST_TOPIC);

                  TopicPublisher publisher = session.createPublisher(topic);

                  waitForSynchMessage();

                  BytesMessage message = session.createBytesMessage();
                  message.writeBytes(PAYLOAD);

                  for (int i = 0; i < iterationCount; i++)
                  {
                     publisher.publish(message, persistence, 4, 0);
                  }

                  session.close();
               }
               catch (Exception e)
               {
                  log.error("error", e);
               }
            }
         };

      TopicSession session = topicConnection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE);
View Full Code Here

   {
      drainQueue();
      drainDurableTopic();

      final int iterationCount = getIterationCount();
      final Logger log = getLog();

      Thread sendThread =
         new Thread()
         {
            public void run()
            {
               try
               {

                  TopicSession session = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
                  Topic topic = (Topic)context.lookup(TEST_DURABLE_TOPIC);

                  TopicPublisher publisher = session.createPublisher(topic);

                  waitForSynchMessage();

                  BytesMessage message = session.createBytesMessage();
                  message.writeBytes(PAYLOAD);

                  for (int i = 0; i < iterationCount; i++)
                  {
                     publisher.publish(message, persistence, 4, 0);
                  }

                  session.close();
               }
               catch (Exception e)
               {
                  log.error("error", e);
               }
            }
         };

      TopicSession session = topicDurableConnection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE);
View Full Code Here

          System.out.println("Got lastname:" + requestDTO.getLastName());
           return rsDTO;
       }
       catch (Throwable t)
       {
           Logger logger=Logger.getLogger(this.getClass());
           logger.error(t);

           SimpleResponseDTO rsDTO =  new SimpleResponseDTO();

           return rsDTO;
       }
View Full Code Here

TOP

Related Classes of org.jboss.logging.Logger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.