• Post Reply Bookmark Topic Watch Topic
  • New Topic

using Powerbuilder user objects  RSS feed

 
Cilla Pestoff
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
Yesterday I posted on the intermediate forum asking about using OLE objects in my Java app. Well, I can't find a good solution to that problem.
But, there is a PowerBuilder user object available to me that accesses the oleobject and does exactly what I need to do in my Java app. (In fact, if I could find a way to access the ole object in java, I was simply going to translate the Powerbuilder user object code to Java)
So my next question is, how do I access and use a PowerBuilder user object in my Java application?
Thank you,
Cilla
 
Wayne Daley
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without knowing your appliation configuartion....I'll tell you how I do it. The PB components are installed on an application server and referenced the same as an EJB. This makes it very easy, all you need to do is generate the stubs and skeletons to perform a JNDI look-up or depending on the appserver you may also be able to do a CORBA look-up to the PB component.
Wayne
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Direct access is probably not possible, because why would the PB guys design themselves to be callable from Java? There are several indirect paths, in increasing difficulty:
Java uses JNI to call a C program, which then calls OLE. You have to write the C program to be Java and JNI aware. It's not hard if you have anybody conversant in C.
Java uses sockets to any language that can call OLE. Can you do sockets in VB?
Java uses XML over HTTP to any language that can provide SOAP services and call OLE.
Java uses IIOP to call some CORBA-compliant server that can call OLE.
Now it's getting hard enough I'd look for an easier job.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!