How to connect Java with QM?

98 views
Skip to first unread message

Cleber Vieira Baptista

unread,
Mar 10, 2018, 10:20:41 PM3/10/18
to OpenQM
Hi,

I need a Java example of how to access data in QM - QMCliente API

     SUBROUTINE teste (oi)
      $CATALOG
      oi = " Hello World "
      RETURN
      END


​att.,​

--
Cleber Vieira Baptista

+55
 61 8441-1663 Oi
 

Livre de vírus. www.avast.com.

Cleber Vieira Baptista

unread,
Mar 10, 2018, 11:28:05 PM3/10/18
to OpenQM
Something like?

import qmclient.*;

ErrMsg = "";

qm.Call("teste", oi);

ErrMsg = qm.GetArg(3);

if (ErrMsg != "") System.out.printf("Failed - %s%n", ErrMsg);

System.out.printf(oi);




Cleber Vieira Baptista

unread,
Mar 10, 2018, 11:45:07 PM3/10/18
to OpenQM
Something like?

import qmclient.*;

if (!qm.Connect(Host, -1, UserName, Password, Account))

System.out.println("Failed to connect - " + qm.Error());

ErrMsg = "";

qm.Call("teste", oi);

ErrMsg = qm.GetArg(3);

if (ErrMsg != "") System.out.printf("Failed - %s%n", ErrMsg);

System.out.printf(oi);



Mvreply

unread,
Mar 11, 2018, 10:37:29 AM3/11/18
to ope...@googlegroups.com

Cleber,

If you navigate to http://downloads.openqm.com/help/index.html

 

Then use the “Search” tab to search on “java”, the first item which comes up is a “QMClient Example” – the 4th entry of which is a java example:

 

 

Mike

--
You received this message because you are subscribed to the Google Groups "OpenQM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openqm+un...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/openqm.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages