Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2007, 09:01 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logging problem with IBM Websphere 6.1

Hallo all,

I am using a J2EE application with IBM Websphere Application Server 6.1. It generates and builds the EJB and ear files via Ant. I am now trying to log the data to the native_stdout.log data of WAS 6.1 I have written (as an example) this code chunk

import java.util.logging.Level;
import java.util.logging.Logger;

public class StorageLocationBean extends StorageLocationSoapBindingImpl {

    public CheckStorageLocationResponse check(CheckStorageLocationRequest request) throws java.rmi.RemoteException {

        Logger logger = Logger.getLogger("com.daimlerchrysler.sorry.servic e.storagelocation.StorageLocationBean");
        logger.info("Web service storagelocation.check has been called");
        logger.log(Level.INFO, "Web service storagelocation.check has been called");
        logger.logp(Level.SEVERE, getClass().getName(), "setCsfTicketId", "A severe level log"); CheckStorageLocationResponse response = new CheckStorageLocationResponse();
        response.setIncidentId("1234567");
        response.setCsfTicketId(request.getCsfTicketId());
        return response;

    }

}

So I think there is nothing wrong with that code but when I run the program from my MyEclipse 5.1.1 GA it doesn't write the log info to the log data. I am using J2EE 1.4 and WAS 6.1. Can anyone help me to solve this problem?

Your attitude determines your altitude
__________________
Your attitude determines your altitude





Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM WebSphere Web Services Development anand_indya J2EE 0 February 8th, 2005 05:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.