Global variable of stateless session bean MUST be serializable?
843830Mar 28 2005 — edited Mar 28 2005Hi,
Can anyone help to resolve the following problem, thank you in advance!
Environment:
=====================================
JDK: jdk1.4.2_05
AppS: Weblogic 6.1 SP4
OS: Windows
IDE: JBuilder 9
Problem:
======================================
The EJB can be deployed to WLS successfully. While, during run time, it throws an exception:
java.rmi.MarshalException:
java.io.NotSerializableException: com.mot.helium.util.HeliumLogger
Reference:
========================================
1. "HeliumLogger" is a java class inherit Log4j, it does not implement the interface of Serializable.
2. In my EJB class, I defines the "HeliumLogger" as a global variable:
HeliumLogger _logger = HeliumLogger.getLogger(MyEJBClass.class);
3. My EJB is a stateless session bean.
BR/Shirley