[U2] Java CallableStatement help

2006-01-04 Thread Baker Hughes
Happy new projects in the New Year (may we each have all we can handle,
and may they all pay).

I'm still trying to wrap my mind around the UniVerse implementation of
Java.
I need to trigger a call, from UV, to a Java API, sending Credit Card
data to our processor.

From what I can read, the CallableStatement in UV looks like what I
need.  Does anyone have any fragment or code example of this, or other
call to a Java interface?

BTW, if you see any extra rainclouds, send them to Texas.

Thanks,

R. Baker Hughes
UniVerse Programming
Mouser Electronics, Inc.
[EMAIL PROTECTED] *
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Java CallableStatement help

2006-01-04 Thread Kevin King
Just to clarify... You want to move information FROM Universe TO a
Java app?  What interfaces (communication interfaces, not Java
interfaces) are provided in the Java app?

-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Java CallableStatement help

2006-01-04 Thread Baker Hughes
Wendy wrote:
IBM provides an implementation of the JDBC specification, (a JDBC
driver,) as well as a proprietary Java API known as UniObjects for
Java.

Yes, I was reading the docs on it, but no code samples there, so things
still a bit fuzzy.

If you mean the the JDBC CallableStatement, you would use that to talk
to UV from Java.

Oh. From the docs, it sounded to me like that was the call from UniBasic
to Java.  Thanks for the paradigm correction.

It sounds like you want to use UniBasic to call a Java program.  Is
that correct?

Yes.

What does the call to the credit card processor's Java API look like? 
Depending on how you interact with their API, there are lots of ways to
do this.  And if you name the processor or the API you're using, quite
possibly someone here has already done it. 

I'm trying to call the Live Processor (from Retail Decisions) Java API.
LPTransaction() has these methods:
clear() 
  Clears/Resets all the properties in this transaction. 
getField(java.lang.String keyword) 
  Retrieves the value of the specified property identified by
keyword. 
process(LPClient client) 
  Sends the request to LiveProcessor server for processing and gets
the response. 
setField(java.lang.String keyword, java.lang.String value) 
  Assigns the specified value to the property identified by keyword.

Methods inherited from class java.lang.Object 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait,
wait 

Thanks Wendy, and all.

- Baker
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Java CallableStatement help

2006-01-04 Thread John Jenkins
One option is to put a C wrapper around the Java API and link it in via the
GCI interface.  However lots of companies provide a C API version as well so
maybe you can link directly?

Otherwise:

1. MQ series (MQ interface via AMI) - not available on ALL platforms, though
a newer version will be available sometime soon which doesn't use AMI as an
interlude.
2. CallSocket for a client-server application calling a Java server process.
3. XML pass to other application (lots of sub-options on mechanism)
4. CallHTTP to call a web process directly (you may not need the API - many
companies have a direct web interface as well at *their* server).

Hope it helps...


JayJay

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Baker Hughes
Sent: 04 January 2006 16:02
To: u2-users@listserver.u2ug.org
Subject: [U2] Java CallableStatement help

Happy new projects in the New Year (may we each have all we can handle,
and may they all pay).

I'm still trying to wrap my mind around the UniVerse implementation of
Java.
I need to trigger a call, from UV, to a Java API, sending Credit Card
data to our processor.

From what I can read, the CallableStatement in UV looks like what I
need.  Does anyone have any fragment or code example of this, or other
call to a Java interface?

BTW, if you see any extra rainclouds, send them to Texas.

Thanks,

R. Baker Hughes
UniVerse Programming
Mouser Electronics, Inc.
[EMAIL PROTECTED] *
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Java CallableStatement help

2006-01-04 Thread Wendy Smoak
On 1/4/06, Baker Hughes [EMAIL PROTECTED] wrote:

 Yes, I was reading the docs on it, but no code samples there, so things
 still a bit fuzzy.

Look in (the equivalent of) c:\ibm\unidk\uojsdk and c:\ibm\unidk\jdbc
for samples.

 I'm trying to call the Live Processor (from Retail Decisions) Java API.
 LPTransaction() has these methods:
 clear()
   Clears/Resets all the properties in this transaction.
 getField(java.lang.String keyword)
   Retrieves the value of the specified property identified by
 keyword.
 process(LPClient client)
   Sends the request to LiveProcessor server for processing and gets
 the response.
 setField(java.lang.String keyword, java.lang.String value)
   Assigns the specified value to the property identified by keyword.

Are you already able to process a transaction using (only) Java code? 
Is the question how to do the entire thing, or just how to hook it up
to UV?  I don't think we have enough information to be of much help...
I'm not sure where you're stuck.

Have they only given you a low level process a single transaction
API?  If so, you'll have to do some work in Java before it's ready to
be called from UniBasic.  And at that point I'd be leaning towards a
sockets-based approach.

--
Wendy
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/