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.

How to call Java component from PowerBuilder.

3 posts in Java J2EE specific Last posting was on 2008-09-09 20:07:32.0Z
Anuj Kumar Posted on 2008-09-09 14:41:49.0Z
Sender: 5b89.48c634df.1804289383@sybase.com
From: Anuj Kumar
Newsgroups: sybase.public.easerver.j2ee
Subject: How to call Java component from PowerBuilder.
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48c68b2d.6c2c.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 9 Sep 2008 07:41:49 -0700
X-Trace: forums-1-dub 1220971309 10.22.241.41 (9 Sep 2008 07:41:49 -0700)
X-Original-Trace: 9 Sep 2008 07:41:49 -0700, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7880
Article PK: 208305

Can anyone please tell me how can I call a Java component,
that is deployed on EAServer6.2 using an EAR file, from a
Powerbuilder client that is running on the same EAServer
instance. I can think of some options but dont really know
how and whether they will work or not.

1) Through CORBA. We make a corba call from Powerbuilder to
Java. Has anyone done it before?

2) Through RMI-IIOP. Again has anyone done it before?

3) Is there any other way as well that I can explore?


Chris Pollach Posted on 2008-09-09 15:21:04.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.easerver.j2ee
References: <48c68b2d.6c2c.1681692777@sybase.com>
Subject: Re: How to call Java component from PowerBuilder.
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48c69460$1@forums-1-dub>
Date: 9 Sep 2008 08:21:04 -0700
X-Trace: forums-1-dub 1220973664 10.22.241.152 (9 Sep 2008 08:21:04 -0700)
X-Original-Trace: 9 Sep 2008 08:21:04 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7881
Article PK: 208307

Anuj;

AFAIK you should be able to use the TransactionServer object ...
Example:
transactionserver.CreateInstance (objectvariable {, classname } )

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

<Anuj Kumar> wrote in message news:48c68b2d.6c2c.1681692777@sybase.com...
> Can anyone please tell me how can I call a Java component,
> that is deployed on EAServer6.2 using an EAR file, from a
> Powerbuilder client that is running on the same EAServer
> instance. I can think of some options but dont really know
> how and whether they will work or not.
>
> 1) Through CORBA. We make a corba call from Powerbuilder to
> Java. Has anyone done it before?
>
> 2) Through RMI-IIOP. Again has anyone done it before?
>
> 3) Is there any other way as well that I can explore?


Evan Ireland Posted on 2008-09-09 20:07:32.0Z
From: Evan Ireland <eireland@sybase.com>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: How to call Java component from PowerBuilder.
References: <48c68b2d.6c2c.1681692777@sybase.com>
In-Reply-To: <48c68b2d.6c2c.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48c6d784$1@forums-1-dub>
Date: 9 Sep 2008 13:07:32 -0700
X-Trace: forums-1-dub 1220990852 10.22.241.152 (9 Sep 2008 13:07:32 -0700)
X-Original-Trace: 9 Sep 2008 13:07:32 -0700, vip152.sybase.com
Lines: 30
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7882
Article PK: 208308

Anuj,

You do it in the same way that one PB component would call another in
EAServer. It's really no different.

(1) Generate a PB proxy for the component you will call (e.g. MyPkg_MyComp)

(2) Declare a variable using the proxy class:

MyPkg_MyComp mc

(3) Use the TransactionServer object to get an instance to call:

ts.CreateInstance(mc, "MyPkg/MyComp")

(4) Call methods on 'mc'.

Anuj Kumar wrote:
> Can anyone please tell me how can I call a Java component,
> that is deployed on EAServer6.2 using an EAR file, from a
> Powerbuilder client that is running on the same EAServer
> instance. I can think of some options but dont really know
> how and whether they will work or not.
>
> 1) Through CORBA. We make a corba call from Powerbuilder to
> Java. Has anyone done it before?
>
> 2) Through RMI-IIOP. Again has anyone done it before?
>
> 3) Is there any other way as well that I can explore?