Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to call Java component from PowerBuilder.

25 views
Skip to first unread message

anujkumar

unread,
Sep 9, 2008, 10:41:49 AM9/9/08
to
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

unread,
Sep 9, 2008, 11:21:04 AM9/9/08
to
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.6c2...@sybase.com...

Evan Ireland

unread,
Sep 9, 2008, 4:07:32 PM9/9/08
to
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'.

0 new messages