yes that's possible - download IBM JDK 1.3 from ibm-website and install
it, then link all java-stuff ( for domino ) to the new directory ..
Mit freundlichen Grüßen
Bruno Leonhardt
"Dmitry Melekhov" <[email protected]>
27.09.02 17:36
An: <[email protected]>
Kopie:
Thema: [suse-domino] SAP & Domino/Linux
Hello!
We need to do integration between SAP R/3 and Domino,
both on SLES7 (Suse 7.2).
Well, usually we run Domino on RH 7.3, but I installed
Domino 5.0.9a on SLES7.
As I understand LSX for SAP is not available on Linux :-(
So I decided to use Java agents and SAP JCo.
I wrote following Java agent for testing (sorry, I'm admin, not programmer
;-) ).
mport lotus.domino.*;
import com.sap.mw.jco.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
String[][] login_params = {
{ "client" , "400" },
{ "user" , "user" },
{ "passwd" , "pass" },
{ "language" , "RU" },
{ "codepage" , "1500" },
{ "ashost" , "r3dvl.belkam.com" },
{ "sysnr" , "00" },
};
try {
JCO.Client mConnection=JCO.createClient(login_params);
mConnection.connect();
material m = new material();
System.out.println(m.getName(mConnection,"1500000000"));
} catch (Exception ex) {
ex.printStackTrace();
}
} catch(Exception e) {
e.printStackTrace();
}
}
}import com.sap.mw.jco.*;
public class material {
public String getName(JCO.Client conn, String matnr) {
String xreturn="";
try {
IRepository mRepository=new JCO.Repository("ARAsoft", conn);
JCO.Function
func_rec=mRepository.getFunctionTemplate("ZMA_ZAJMAT").getFunction();
func_rec.getImportParameterList().setValue("MATNR = '"+matnr+"' AND
OTKAZ NE 'X'","WHERE_SELECT");
conn.execute(func_rec);
JCO.Table t =
func_rec.getTableParameterList().getTable("ZMA_ZAJMAT_SELECT");
if (0<t.getNumRows()) {
xreturn=t.getString("NAZVOBR").trim()+"
"+t.getString("TIPROBR").trim()+" "+t.getString("RAZMOBR").trim()+"
"+t.getString("STANDOBR").trim()+" "+t.getString("PROCHOBR").trim();
} else {
xreturn="";
}
} catch (Exception ex) {
ex.printStackTrace();
} finally {
conn.disconnect();
}
return xreturn;
}
public static void main (String args[]) {
material m = new material();
}
}
It work OK on Domino 5.0.7/win32 server, but Domino/Linux server crashes-
nothing in log, processes works and server doesn't respond.
Any ideas?
I think this is jdk problem.
Is it possible to install jdk greater that 1.1.8 for Domino?
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.