You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Pugh, Eric" <EP...@MuseumCompany.com> on 2001/04/13 01:18:23 UTC

Passing a Category into a Session Bean

Hi,

I want to pass into a session bean my Category object.  I want to pass it in
to my Seesion bean, but I get this error when I try to deploy:
==================== Validation Errors =======================

SBCategoryNode	store.browse
	Remote interface
		void setLog(org.apache.log4j.Category)
			Non-fatal Error:	This method is not
RMI-compliant: check the type of the following argument:
'org.apache.log4j.Category orgApacheLog4jCategory0'. See Enterprise
JavaBeans v.1.1: 7.2.1, 9.2.

I believe it is because the Category object is not Serializable?

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Re: Passing a Category into a Session Bean

Posted by Ceki Gülcü <cg...@qos.ch>.
At 19:18 12.04.2001 -0400, you wrote:
>Hi,
>
>I want to pass into a session bean my Category object.  I want to pass it in
>to my Seesion bean, but I get this error when I try to deploy:
>==================== Validation Errors =======================
>
>SBCategoryNode  store.browse
>        Remote interface
>                void setLog(org.apache.log4j.Category)
>                        Non-fatal Error:        This method is not
>RMI-compliant: check the type of the following argument:
>'org.apache.log4j.Category orgApacheLog4jCategory0'. See Enterprise
>JavaBeans v.1.1: 7.2.1, 9.2.
>
>I believe it is because the Category object is not Serializable?

Indeed, Category object is not serializable. You can however send the name of the category on the wire and retrieve a category with Category.getInstance(name). Hope this helps, Ceki


--
Ceki Gülcü


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org