Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Java serialized classes

6 posts in EJB Client Last posting was on 2003-11-17 13:48:16.0Z
Paul B Posted on 2003-11-14 13:20:12.0Z
From: "Paul B" <Pawel.Bodnar@atena.pl>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Java serialized classes
Lines: 11
Organization: Atena
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 217.153.12.35
X-Original-NNTP-Posting-Host: 217.153.12.35
Message-ID: <3fb4d68c@forums-1-dub>
Date: 14 Nov 2003 05:20:12 -0800
X-Trace: forums-1-dub 1068816012 217.153.12.35 (14 Nov 2003 05:20:12 -0800)
X-Original-Trace: 14 Nov 2003 05:20:12 -0800, 217.153.12.35
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:191
Article PK: 424381

Hi there !
Did someone try to use other than simple type results from EJB components ?
for example Collection, HasMap or your own class (which implement
serializable) ?


Best regards Paul


Gökhan Demir Posted on 2003-11-14 14:20:35.0Z
Message-ID: <3FB4E342.3F59655B@igonline.biz>
From: =?iso-8859-1?Q?G=F6khan?= Demir <gokhan.demir@igonline.biz>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Java serialized classes
References: <3fb4d68c@forums-1-dub>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 212.98.242.10
X-Original-Trace: 14 Nov 2003 06:26:10 -0800, 212.98.242.10
Lines: 12
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 14 Nov 2003 06:11:23 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 14 Nov 2003 06:20:35 -0800
X-Trace: forums-1-dub 1068819635 10.22.108.75 (14 Nov 2003 06:20:35 -0800)
X-Original-Trace: 14 Nov 2003 06:20:35 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:192
Article PK: 424382

Yes, I have used and am using them highly without serious problems.

Gokhan

Paul B wrote:
>
> Hi there !
> Did someone try to use other than simple type results from EJB components ?
> for example Collection, HasMap or your own class (which implement
> serializable) ?
>
> Best regards Paul


Paul B Posted on 2003-11-14 14:41:14.0Z
From: "Paul B" <Pawel.Bodnar@atena.pl>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3fb4d68c@forums-1-dub> <3FB4E342.3F59655B@igonline.biz>
Subject: Re: Java serialized classes
Lines: 43
Organization: Atena
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 217.153.12.35
X-Original-NNTP-Posting-Host: 217.153.12.35
Message-ID: <3fb4e98a@forums-1-dub>
Date: 14 Nov 2003 06:41:14 -0800
X-Trace: forums-1-dub 1068820874 217.153.12.35 (14 Nov 2003 06:41:14 -0800)
X-Original-Trace: 14 Nov 2003 06:41:14 -0800, 217.153.12.35
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:193
Article PK: 424384

Well ,
Would you help me with following problem:

in EJB method I return my own class PB ( example code below) :

public PB test(){
PB o = new PB();
o.s_test = "some_value";
return o;
}

In PowerBuilder I call like that:
...connect , lookup home.ceate ...
_prefix_PB (automatic generated proxy) ob
ob = ejb_proxy_object.test();
MessageBox("result" , ob.s_test );

I still have "no_value" while in java clients I have "some_value" . Did you
meet that problem ?
class PB{
String s_test = "no_value";
}
Would you send your java and PB code which works and build numer of your PB
?


Uzytkownik "Gökhan Demir" <gokhan.demir@igonline.biz> napisal w wiadomosci
news:3FB4E342.3F59655B@igonline.biz...

> Yes, I have used and am using them highly without serious problems.
>
> Gokhan
>
> Paul B wrote:
> >
> > Hi there !
> > Did someone try to use other than simple type results from EJB
components ?
> > for example Collection, HasMap or your own class (which implement
> > serializable) ?
> >
> > Best regards Paul


Gökhan Demir Posted on 2003-11-14 14:57:54.0Z
Message-ID: <3FB4EC5B.3D7EF4E3@igonline.biz>
From: =?iso-8859-1?Q?G=F6khan?= Demir <gokhan.demir@igonline.biz>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Java serialized classes
References: <3fb4d68c@forums-1-dub> <3FB4E342.3F59655B@igonline.biz> <3fb4e98a@forums-1-dub>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 212.98.242.10
X-Original-NNTP-Posting-Host: 212.98.242.10
Date: 14 Nov 2003 06:57:54 -0800
X-Trace: forums-1-dub 1068821874 212.98.242.10 (14 Nov 2003 06:57:54 -0800)
X-Original-Trace: 14 Nov 2003 06:57:54 -0800, 212.98.242.10
Lines: 62
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:194
Article PK: 424383

Hi back,

I have never used direct member access, although it is said to be
possible with PB 9.0.1. Therefore, I have never met this problem. Some
problems I have met from within Powerbuilder are the following:

1. Java objects without empty constructors cannot be instantiated.
2. Static member methods cannot be accessed.
3. Some problems with proxy generation for especially direct member
access!

Of course workarounds are possible for all three cases, and I must say I
really pass and use complex java classes through PB proxies to-and-from
the EJB server (EAServer) without any problems. For your specific case,
maybe Mr. Jim O'Neil can add something.

Regards,
Gokhan

Paul B wrote:
>
> Well ,
> Would you help me with following problem:
>
> in EJB method I return my own class PB ( example code below) :
>
> public PB test(){
> PB o = new PB();
> o.s_test = "some_value";
> return o;
> }
>
> In PowerBuilder I call like that:
> ...connect , lookup home.ceate ...
> _prefix_PB (automatic generated proxy) ob
> ob = ejb_proxy_object.test();
> MessageBox("result" , ob.s_test );
>
> I still have "no_value" while in java clients I have "some_value" . Did you
> meet that problem ?
> class PB{
> String s_test = "no_value";
> }
> Would you send your java and PB code which works and build numer of your PB
> ?
>
> Uzytkownik "Gökhan Demir" <gokhan.demir@igonline.biz> napisal w wiadomosci
> news:3FB4E342.3F59655B@igonline.biz...
> > Yes, I have used and am using them highly without serious problems.
> >
> > Gokhan
> >
> > Paul B wrote:
> > >
> > > Hi there !
> > > Did someone try to use other than simple type results from EJB
> components ?
> > > for example Collection, HasMap or your own class (which implement
> > > serializable) ?
> > >
> > > Best regards Paul


Paul B Posted on 2003-11-17 13:24:01.0Z
From: "Paul B" <Pawel.Bodnar@atena.pl>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3fb4d68c@forums-1-dub> <3FB4E342.3F59655B@igonline.biz> <3fb4e98a@forums-1-dub> <3FB4EC5B.3D7EF4E3@igonline.biz>
Subject: Re: Java serialized classes
Lines: 77
Organization: Atena
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Original-NNTP-Posting-Host: 217.153.12.35
Message-ID: <3fb8cd49@forums-2-dub>
X-Original-Trace: 17 Nov 2003 05:29:45 -0800, 217.153.12.35
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 17 Nov 2003 05:14:33 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 17 Nov 2003 05:24:01 -0800
X-Trace: forums-1-dub 1069075441 10.22.108.75 (17 Nov 2003 05:24:01 -0800)
X-Original-Trace: 17 Nov 2003 05:24:01 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:195
Article PK: 424385

Thanks
Maybe that is the problem - I'm using IBM WebSphere not EAServer.

Did you try working with WebSphere or any other J2EE Server in such a way
?

Paul
Uzytkownik "Gökhan Demir" <gokhan.demir@igonline.biz> napisal w wiadomosci
news:3FB4EC5B.3D7EF4E3@igonline.biz...

> Hi back,
>
> I have never used direct member access, although it is said to be
> possible with PB 9.0.1. Therefore, I have never met this problem. Some
> problems I have met from within Powerbuilder are the following:
>
> 1. Java objects without empty constructors cannot be instantiated.
> 2. Static member methods cannot be accessed.
> 3. Some problems with proxy generation for especially direct member
> access!
>
> Of course workarounds are possible for all three cases, and I must say I
> really pass and use complex java classes through PB proxies to-and-from
> the EJB server (EAServer) without any problems. For your specific case,
> maybe Mr. Jim O'Neil can add something.
>
> Regards,
> Gokhan
>
>
> Paul B wrote:
> >
> > Well ,
> > Would you help me with following problem:
> >
> > in EJB method I return my own class PB ( example code below) :
> >
> > public PB test(){
> > PB o = new PB();
> > o.s_test = "some_value";
> > return o;
> > }
> >
> > In PowerBuilder I call like that:
> > ...connect , lookup home.ceate ...
> > _prefix_PB (automatic generated proxy) ob
> > ob = ejb_proxy_object.test();
> > MessageBox("result" , ob.s_test );
> >
> > I still have "no_value" while in java clients I have "some_value" . Did
you
> > meet that problem ?
> > class PB{
> > String s_test = "no_value";
> > }
> > Would you send your java and PB code which works and build numer of your
PB
> > ?
> >
> > Uzytkownik "Gökhan Demir" <gokhan.demir@igonline.biz> napisal w
wiadomosci
> > news:3FB4E342.3F59655B@igonline.biz...
> > > Yes, I have used and am using them highly without serious problems.
> > >
> > > Gokhan
> > >
> > > Paul B wrote:
> > > >
> > > > Hi there !
> > > > Did someone try to use other than simple type results from EJB
> > components ?
> > > > for example Collection, HasMap or your own class (which
implement
> > > > serializable) ?
> > > >
> > > > Best regards Paul


Jim O'Neil [Sybase] Posted on 2003-11-17 13:48:16.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Java serialized classes
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3fb8cf1b.2881593@forums.sybase.com>
References: <3fb4d68c@forums-1-dub> <3FB4E342.3F59655B@igonline.biz> <3fb4e98a@forums-1-dub> <3FB4EC5B.3D7EF4E3@igonline.biz> <3fb8cd49@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: vpn-concord-098.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-098.sybase.com
Date: 17 Nov 2003 05:48:16 -0800
X-Trace: forums-1-dub 1069076896 158.159.8.98 (17 Nov 2003 05:48:16 -0800)
X-Original-Trace: 17 Nov 2003 05:48:16 -0800, vpn-concord-098.sybase.com
Lines: 89
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:196
Article PK: 424386

No, there is nothing about the EJBClient feature that is dependent on
EAServer. It is all pure Java under the covers. I have worked on and
off with someone starting with the PB9 beta that has been using
WebSphere 4 with PowerBuilder quite successfully.

On 17 Nov 2003 05:24:01 -0800, "Paul B" <Pawel.Bodnar@atena.pl> wrote:

>Thanks
>Maybe that is the problem - I'm using IBM WebSphere not EAServer.
>
> Did you try working with WebSphere or any other J2EE Server in such a way
>?
>
>Paul
>Uzytkownik "Gökhan Demir" <gokhan.demir@igonline.biz> napisal w wiadomosci
>news:3FB4EC5B.3D7EF4E3@igonline.biz...
>> Hi back,
>>
>> I have never used direct member access, although it is said to be
>> possible with PB 9.0.1. Therefore, I have never met this problem. Some
>> problems I have met from within Powerbuilder are the following:
>>
>> 1. Java objects without empty constructors cannot be instantiated.
>> 2. Static member methods cannot be accessed.
>> 3. Some problems with proxy generation for especially direct member
>> access!
>>
>> Of course workarounds are possible for all three cases, and I must say I
>> really pass and use complex java classes through PB proxies to-and-from
>> the EJB server (EAServer) without any problems. For your specific case,
>> maybe Mr. Jim O'Neil can add something.
>>
>> Regards,
>> Gokhan
>>
>>
>> Paul B wrote:
>> >
>> > Well ,
>> > Would you help me with following problem:
>> >
>> > in EJB method I return my own class PB ( example code below) :
>> >
>> > public PB test(){
>> > PB o = new PB();
>> > o.s_test = "some_value";
>> > return o;
>> > }
>> >
>> > In PowerBuilder I call like that:
>> > ...connect , lookup home.ceate ...
>> > _prefix_PB (automatic generated proxy) ob
>> > ob = ejb_proxy_object.test();
>> > MessageBox("result" , ob.s_test );
>> >
>> > I still have "no_value" while in java clients I have "some_value" . Did
>you
>> > meet that problem ?
>> > class PB{
>> > String s_test = "no_value";
>> > }
>> > Would you send your java and PB code which works and build numer of your
>PB
>> > ?
>> >
>> > Uzytkownik "Gökhan Demir" <gokhan.demir@igonline.biz> napisal w
>wiadomosci
>> > news:3FB4E342.3F59655B@igonline.biz...
>> > > Yes, I have used and am using them highly without serious problems.
>> > >
>> > > Gokhan
>> > >
>> > > Paul B wrote:
>> > > >
>> > > > Hi there !
>> > > > Did someone try to use other than simple type results from EJB
>> > components ?
>> > > > for example Collection, HasMap or your own class (which
>implement
>> > > > serializable) ?
>> > > >
>> > > > Best regards Paul
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA