You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Ron Gavlin <rg...@yahoo.com> on 2006/08/14 18:44:08 UTC

XSD2Java-generated interfaces are not Serializable

Greetings,
 
I have a session bean that includes XSD2Java-generated interfaces as return types and method parameters. My appserver complains that these interfaces are not Serializable. The XSD2Java-generated implementation classes are indeed serializable. How should this problem be solved...should XSD2Java make these interfaces extend Serializable or do I need to specify the implementation classes as return types and method parameters?
 
- Ron

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


Re: XSD2Java-generated interfaces are not Serializable

Posted by Frank Budinsky <fr...@ca.ibm.com>.
Hi Ron,

OK, I just made your suggested change (revision 436855). We'll see if 
anyone complains :-)

Frank.

Ron Gavlin <rg...@yahoo.com> wrote on 08/23/2006 07:36:31 PM:

> Hi Frank,
> 
> Yes, that would solve the problem. My only concern is that 
> -interfaceDataObject is proposed as an optional flag. If it isn't 
> specified, I think the generated interfaces should extend Serializable 
> nevertheless. All types of Data Transfer Objects, including SDO 
> DataObjects, should be Serializable.
> 
> - Ron
> 
> Frank Budinsky wrote:
> > Hi Ron,
> >
> > Would the feature described in TUSCANY-254 be acceptable, or is that 
more 
> > than you want.
> >
> > Frank.
> >
> > Ron Gavlin <rg...@yahoo.com> wrote on 08/23/2006 03:32:52 PM:
> >
> > 
> >> Hi Frank,
> >>
> >> Now that you have returned from vacation, do you have any thoughts 
> >> on this issue? FYI, the session bean in question is a "remote" 
session 
> >> 
> > bean.
> > 
> >> Thanks in advance,
> >>
> >> - Ron
> >>
> >> ----- Original Message ----
> >> From: Ron Gavlin <rg...@yahoo.com>
> >> To: tuscany-user tuscany-user <tu...@ws.apache.org>
> >> Sent: Monday, August 14, 2006 12:44:08 PM
> >> Subject: XSD2Java-generated interfaces are not Serializable
> >>
> >>
> >> Greetings,
> >>
> >> I have a session bean that includes XSD2Java-generated interfaces as
> >> return types and method parameters. My appserver complains that 
> >> these interfaces are not Serializable. The XSD2Java-generated 
> >> implementation classes are indeed serializable. How should this 
> >> problem be solved...should XSD2Java make these interfaces extend 
> >> Serializable or do I need to specify the implementation classes as 
> >> return types and method parameters?
> >>
> >> - Ron
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: tuscany-user-help@ws.apache.org
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: tuscany-user-help@ws.apache.org
> >>
> >> 
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-user-help@ws.apache.org
> >
> >
> > 
> 


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


Re: XSD2Java-generated interfaces are not Serializable

Posted by Ron Gavlin <rg...@yahoo.com>.
Hi Frank,

Yes, that would solve the problem. My only concern is that 
-interfaceDataObject is proposed as an optional flag. If it isn't 
specified, I think the generated interfaces should extend Serializable 
nevertheless. All types of Data Transfer Objects, including SDO 
DataObjects, should be Serializable.

- Ron

Frank Budinsky wrote:
> Hi Ron,
>
> Would the feature described in TUSCANY-254 be acceptable, or is that more 
> than you want.
>
> Frank.
>
> Ron Gavlin <rg...@yahoo.com> wrote on 08/23/2006 03:32:52 PM:
>
>   
>> Hi Frank,
>>
>> Now that you have returned from vacation, do you have any thoughts 
>> on this issue? FYI, the session bean in question is a "remote" session 
>>     
> bean.
>   
>> Thanks in advance,
>>
>> - Ron
>>
>> ----- Original Message ----
>> From: Ron Gavlin <rg...@yahoo.com>
>> To: tuscany-user tuscany-user <tu...@ws.apache.org>
>> Sent: Monday, August 14, 2006 12:44:08 PM
>> Subject: XSD2Java-generated interfaces are not Serializable
>>
>>
>> Greetings,
>>
>> I have a session bean that includes XSD2Java-generated interfaces as
>> return types and method parameters. My appserver complains that 
>> these interfaces are not Serializable. The XSD2Java-generated 
>> implementation classes are indeed serializable. How should this 
>> problem be solved...should XSD2Java make these interfaces extend 
>> Serializable or do I need to specify the implementation classes as 
>> return types and method parameters?
>>
>> - Ron
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
>
>
>   


Re: XSD2Java-generated interfaces are not Serializable

Posted by Frank Budinsky <fr...@ca.ibm.com>.
Hi Ron,

Would the feature described in TUSCANY-254 be acceptable, or is that more 
than you want.

Frank.

Ron Gavlin <rg...@yahoo.com> wrote on 08/23/2006 03:32:52 PM:

> Hi Frank,
> 
> Now that you have returned from vacation, do you have any thoughts 
> on this issue? FYI, the session bean in question is a "remote" session 
bean.
> 
> Thanks in advance,
> 
> - Ron
> 
> ----- Original Message ----
> From: Ron Gavlin <rg...@yahoo.com>
> To: tuscany-user tuscany-user <tu...@ws.apache.org>
> Sent: Monday, August 14, 2006 12:44:08 PM
> Subject: XSD2Java-generated interfaces are not Serializable
> 
> 
> Greetings,
> 
> I have a session bean that includes XSD2Java-generated interfaces as
> return types and method parameters. My appserver complains that 
> these interfaces are not Serializable. The XSD2Java-generated 
> implementation classes are indeed serializable. How should this 
> problem be solved...should XSD2Java make these interfaces extend 
> Serializable or do I need to specify the implementation classes as 
> return types and method parameters?
> 
> - Ron
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-user-help@ws.apache.org
> 


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


Re: XSD2Java-generated interfaces are not Serializable

Posted by Ron Gavlin <rg...@yahoo.com>.
Hi Frank,
 
Now that you have returned from vacation, do you have any thoughts on this issue? FYI, the session bean in question is a "remote" session bean.
 
Thanks in advance,
 
- Ron

----- Original Message ----
From: Ron Gavlin <rg...@yahoo.com>
To: tuscany-user tuscany-user <tu...@ws.apache.org>
Sent: Monday, August 14, 2006 12:44:08 PM
Subject: XSD2Java-generated interfaces are not Serializable


Greetings,

I have a session bean that includes XSD2Java-generated interfaces as return types and method parameters. My appserver complains that these interfaces are not Serializable. The XSD2Java-generated implementation classes are indeed serializable. How should this problem be solved...should XSD2Java make these interfaces extend Serializable or do I need to specify the implementation classes as return types and method parameters?

- Ron

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

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