Hi all,

I was wondering if it is allowed to define interfaces as parameters, such as
an xml Document.
I tried it and it works fine with jonas. I was looking at the ejb spec but I
didn't quite understand it.
As far as I understood, interfaces are mapped to value types (which would be
fine for me).
Does anyone know exactly what is done or what is allowed?

Thinking about it, there are two ways: a parameter should implement the
serializable interface. 
The interface Document doesn't promise anything concerning serializable. But
the real object
which is sent along is a DocumentImpl which of course is serializable. 
So, if I replace it with something different (not serializable) I get a
runtime error, don't I? That puts
up the question if the container should check for serializabiltiy, and then
no interfaces are allowed ...

Or maybe it's all wrong ... can someone enlighten me?

Thanks, Heike
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to