Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Global variable of stateless session bean MUST be serializable?

843830Mar 28 2005 — edited Mar 28 2005
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2005
Added on Mar 28 2005
2 comments
203 views