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 String Data Type to the EJB method call

2 posts in EJB Client Last posting was on 2004-12-15 02:48:55.0Z
Ravi Mittal Posted on 2004-12-14 21:10:15.0Z
Sender: 63b5.41bf53bb.1804289383@sybase.com
From: Ravi Mittal
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Passing String Data Type to the EJB method call
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41bf56b2.6417.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 14 Dec 2004 13:10:10 -0800, 10.22.241.42
Lines: 20
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 14 Dec 2004 13:10:12 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 14 Dec 2004 13:10:15 -0800
X-Trace: forums-1-dub 1103058615 10.22.108.75 (14 Dec 2004 13:10:15 -0800)
X-Original-Trace: 14 Dec 2004 13:10:15 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:427
Article PK: 424602

Hi All,

I need help from PB Gurus. I am new to PB, so please go easy
on me. I am done with creating EJB client Proxy and
successfully able to connect to the Weblogic Server and look
up my EJB, get the Remote Interface by calling Create of
HomeInterface.

I got stuck at calling the EJB method with the signature:

String MethodA(String).

I believe I have to use CreateJavaInstance to pass the Java
String Data type to the method call. Can any1 please pass me
some 2 line on how to do it. Can I have plain string data
type assigned the Java String value?

A quick response will be heavily apprciated.
Thank you in advance,
Ravi Mittal.


Jim O'Neil [Sybase] Posted on 2004-12-15 02:48:55.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Passing String Data Type to the EJB method call
Message-ID: <4e9vr09hhl2133ts4984oi8id481dg465i@4ax.com>
References: <41bf56b2.6417.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vpn-concord-032.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-032.sybase.com
Date: 14 Dec 2004 18:48:55 -0800
X-Trace: forums-1-dub 1103078935 158.159.8.32 (14 Dec 2004 18:48:55 -0800)
X-Original-Trace: 14 Dec 2004 18:48:55 -0800, vpn-concord-032.sybase.com
Lines: 27
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:428
Article PK: 424603

You don't need to create a Java string instance, just pass a
PowerBuilder String in and it should all work fine. Take a look at
the proxy in PowerBuilder and it should reflect that.

On 14 Dec 2004 13:10:15 -0800, Ravi Mittal wrote:

>Hi All,
>
>I need help from PB Gurus. I am new to PB, so please go easy
>on me. I am done with creating EJB client Proxy and
>successfully able to connect to the Weblogic Server and look
>up my EJB, get the Remote Interface by calling Create of
>HomeInterface.
>
>I got stuck at calling the EJB method with the signature:
>
>String MethodA(String).
>
>I believe I have to use CreateJavaInstance to pass the Java
>String Data type to the method call. Can any1 please pass me
>some 2 line on how to do it. Can I have plain string data
>type assigned the Java String value?
>
>A quick response will be heavily apprciated.
>Thank you in advance,
>Ravi Mittal.