logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chopra, Sumeet (Cognizant)" <CSum...@cal.cognizant.com>
Subject Append Method problem
Date Fri, 23 May 2003 15:48:56 GMT
Hi All,

I am using a custom JMS Appender.
In that appender class I have a a ValueObject declared as a class 
variable .Using a set method I am setting its properties.
and thru a get method i retrieve its instance.

like :
JMSValueObject myJMSVO = new JMSValueObject();//class level

//set method
setAttributes(JMSValueObject jmsvo)

//get method 

public JMSValueObject getAttributes()
  return myJMSVO;

In append method I am calling get methods om valueobject and printing it out
but it gives me null :

//in append method

JMSValueObject appendVO = getAttributes();
System.out.println("User id is as "+appendVO.getUserID());
System.out.println("Message from value object is "+appendVO.getMessage());

Any ideas y it is happeneing so ?

Sumeet Chopra.

View raw message