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.

Passing JavaBeans to EJBs

4 posts in EJB Client Last posting was on 2005-02-08 21:08:48.0Z
Yuri Posted on 2005-02-07 23:20:01.0Z
From: "Yuri" <ydench@yahoo.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Passing JavaBeans to EJBs
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Original-NNTP-Posting-Host: 12.173.168.195
Message-ID: <4207f79e$1@forums-2-dub>
X-Original-Trace: 7 Feb 2005 15:19:58 -0800, 12.173.168.195
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Feb 2005 15:20:00 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Feb 2005 15:20:01 -0800
X-Trace: forums-1-dub 1107818401 10.22.108.75 (7 Feb 2005 15:20:01 -0800)
X-Original-Trace: 7 Feb 2005 15:20: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:437
Article PK: 424612

Hi,
I am trying to pass a regular javabean as an argument to a method on my
session bean.
I have created a dummy Home for the javabean and also created proxies for
the class in powerbuilder.
I created an instance of the class using CreateJavaInstance, and I have also
created an instance of my session bean.
I try to call a method on my session bean, passing the instance of my
javabean to it.
At runtime, I get the following error msg: 'error marshalling arguments;
java.io.NotSerializableEception'
If I call the other session methods and pass a simple String for instance,
this works just fine.
Could you tell me if I can pass a regular java class to a method in a
session bean or not.
I am using PB10, built 6044.
Thanks,
Yuri


Bede <bede_nosp Posted on 2005-02-08 09:34:47.0Z
From: Bede <bede_nosp@m_sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Passing JavaBeans to EJBs
Message-ID: <MPG.1c72a287f2a5e05a9896c1@forums.sybase.com>
References: <4207f79e$1@forums-2-dub>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 8 Feb 2005 01:34:47 -0800
X-Trace: forums-1-dub 1107855287 194.7.38.226 (8 Feb 2005 01:34:47 -0800)
X-Original-Trace: 8 Feb 2005 01:34:47 -0800, uu194-7-38-226.unknown.uunet.be
Lines: 82
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:438
Article PK: 424613

Hi Yuri,

it should definitely be possible, we do it all the time.
First, make sure you use the latest PB build; many errors are still
being found and solved -as we speak =:)

You'll also need to work with websphere's jre (IBM) or make some
adaptions so PB can work with websphere using the SunJRE (JRE 1.4.2_06)
+ change the following in the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java]
"JDKLocation"="Q:\\jre"
"JDKLocationDef"="Q:\\jre"
"JREBinLocation"="Q:\\jre\\bin\\client"
"JREBinLocationDef"="Q:\\jre\\bin\\client"

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig]

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig
\PBJVMconfig]
"0"="-verbose:jni,class"
"Count"="4"
"1"="-Djava.ext.dirs=.\\java\\was\\lib"
"2"="-Dcom.ibm.CORBA.ConfigURL=file:Q:\\java
\\\\was/properties/sas.client.props"
"3"="-Xbootclasspath/p:Q:\\java\\was\\lib\\ext\\ibmorb.jar;Q:\\java\\was
\\lib\\ext\\ibmext.jar;Q:\\java\\was\\lib\\ext\\iwsorbutil.jar;Q:\\java
\\was\\lib\\ext\\ibmjlog.jar;Q:\\java\\was\\properties"

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig
\PBJVMprops]
"java.compiler"="NONE"

[HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig
\PBSysclasspath]
"Count"="0"
"0"=""
"1"=""
"2"=""
"3"=""
"4"=""
"5"=""
"6"=""
"7"=""
"8"=""
"9"=""
"10"=""

As you may have concluded, i got a Q-drive with
Q:\java\was (websphere-specific files)
and a Q:\jre (java runtime)
If you want, i can send you the property file.

serverside, the websphere can continue to use IBM's jre

HTH,

Ben

In article <4207f79e$1@forums-2-dub>, ydench@yahoo.com says...

> Hi,
> I am trying to pass a regular javabean as an argument to a method on my
> session bean.
> I have created a dummy Home for the javabean and also created proxies for
> the class in powerbuilder.
> I created an instance of the class using CreateJavaInstance, and I have also
> created an instance of my session bean.
> I try to call a method on my session bean, passing the instance of my
> javabean to it.
> At runtime, I get the following error msg: 'error marshalling arguments;
> java.io.NotSerializableEception'
> If I call the other session methods and pass a simple String for instance,
> this works just fine.
> Could you tell me if I can pass a regular java class to a method in a
> session bean or not.
> I am using PB10, built 6044.
> Thanks,
> Yuri
>
>
>
>


Bede <bede_nosp Posted on 2005-02-08 10:03:11.0Z
From: Bede <bede_nosp@m_sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Passing JavaBeans to EJBs
Message-ID: <MPG.1c72acc8ffeff7d49896c4@forums.sybase.com>
References: <4207f79e$1@forums-2-dub> <MPG.1c72a287f2a5e05a9896c1@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 8 Feb 2005 02:03:11 -0800
X-Trace: forums-1-dub 1107856991 194.7.38.226 (8 Feb 2005 02:03:11 -0800)
X-Original-Trace: 8 Feb 2005 02:03:11 -0800, uu194-7-38-226.unknown.uunet.be
Lines: 88
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:439
Article PK: 424616

of course, in your case you'll need to add similar registry settings for
PB10, not PB9

In article <MPG.1c72a287f2a5e05a9896c1@forums.sybase.com>,
bede_nosp@m_sofico.be says...

> Hi Yuri,
>
> it should definitely be possible, we do it all the time.
> First, make sure you use the latest PB build; many errors are still
> being found and solved -as we speak =:)
>
> You'll also need to work with websphere's jre (IBM) or make some
> adaptions so PB can work with websphere using the SunJRE (JRE 1.4.2_06)
> + change the following in the registry:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java]
> "JDKLocation"="Q:\\jre"
> "JDKLocationDef"="Q:\\jre"
> "JREBinLocation"="Q:\\jre\\bin\\client"
> "JREBinLocationDef"="Q:\\jre\\bin\\client"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig]
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig
> \PBJVMconfig]
> "0"="-verbose:jni,class"
> "Count"="4"
> "1"="-Djava.ext.dirs=.\\java\\was\\lib"
> "2"="-Dcom.ibm.CORBA.ConfigURL=file:Q:\\java
> \\\\was/properties/sas.client.props"
> "3"="-Xbootclasspath/p:Q:\\java\\was\\lib\\ext\\ibmorb.jar;Q:\\java\\was
> \\lib\\ext\\ibmext.jar;Q:\\java\\was\\lib\\ext\\iwsorbutil.jar;Q:\\java
> \\was\\lib\\ext\\ibmjlog.jar;Q:\\java\\was\\properties"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig
> \PBJVMprops]
> "java.compiler"="NONE"
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Sybase\PowerBuilder\9.0\Java\PBIDEConfig
> \PBSysclasspath]
> "Count"="0"
> "0"=""
> "1"=""
> "2"=""
> "3"=""
> "4"=""
> "5"=""
> "6"=""
> "7"=""
> "8"=""
> "9"=""
> "10"=""
>
> As you may have concluded, i got a Q-drive with
> Q:\java\was (websphere-specific files)
> and a Q:\jre (java runtime)
> If you want, i can send you the property file.
>
> serverside, the websphere can continue to use IBM's jre
>
> HTH,
>
> Ben
>
> In article <4207f79e$1@forums-2-dub>, ydench@yahoo.com says...
> > Hi,
> > I am trying to pass a regular javabean as an argument to a method on my
> > session bean.
> > I have created a dummy Home for the javabean and also created proxies for
> > the class in powerbuilder.
> > I created an instance of the class using CreateJavaInstance, and I have also
> > created an instance of my session bean.
> > I try to call a method on my session bean, passing the instance of my
> > javabean to it.
> > At runtime, I get the following error msg: 'error marshalling arguments;
> > java.io.NotSerializableEception'
> > If I call the other session methods and pass a simple String for instance,
> > this works just fine.
> > Could you tell me if I can pass a regular java class to a method in a
> > session bean or not.
> > I am using PB10, built 6044.
> > Thanks,
> > Yuri
> >
> >
> >
> >
>


Gokhan Demir Posted on 2005-02-08 21:08:48.0Z
From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Passing JavaBeans to EJBs
References: <4207f79e$1@forums-2-dub>
In-Reply-To: <4207f79e$1@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: adsluser-1165.adsl.ttnet.net.tr
Message-ID: <42092a5c@forums-2-dub>
X-Original-Trace: 8 Feb 2005 13:08:44 -0800, adsluser-1165.adsl.ttnet.net.tr
Lines: 29
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 Feb 2005 13:08:45 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 Feb 2005 13:08:48 -0800
X-Trace: forums-1-dub 1107896928 10.22.108.75 (8 Feb 2005 13:08:48 -0800)
X-Original-Trace: 8 Feb 2005 13:08:48 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:440
Article PK: 424615

Hi,

You can pass any "serializable" class as a method argument.

Regards,
Gokhan

Yuri wrote:
> Hi,
> I am trying to pass a regular javabean as an argument to a method on my
> session bean.
> I have created a dummy Home for the javabean and also created proxies for
> the class in powerbuilder.
> I created an instance of the class using CreateJavaInstance, and I have also
> created an instance of my session bean.
> I try to call a method on my session bean, passing the instance of my
> javabean to it.
> At runtime, I get the following error msg: 'error marshalling arguments;
> java.io.NotSerializableEception'
> If I call the other session methods and pass a simple String for instance,
> this works just fine.
> Could you tell me if I can pass a regular java class to a method in a
> session bean or not.
> I am using PB10, built 6044.
> Thanks,
> Yuri
>
>
>