on 04-13-2005 4:39 PM
Bonjour,
Je souhaite utilisé le SDK Java Connector. J'ai essayé le programme ci-dessous :
public static void main(String[] args) throws SBOCOMException {
ICompany company = SBOCOMUtil.newCompany();
//Database settings:
company.setServer("xxxxxxxxx");
company.setDbPassword("sa");
company.setDbUserName("xxxxxxxxxx");
//Business One settings:
company.setUserName("xxxxxx");
company.setPassword("xxxxxx");
company.setCompanyDB("PME_SA");
company.setUseTrusted(new Boolean(false));
// connect now
int nResult = company.connect();
// throw exception if failed
if ( nResult != 0 )
{
System.out.println("Could not connect" + nResult);
System.exit(0);
}
System.out.println("connected");
company.disconnect();
System.out.println("thread finished");
com.sap.smb.sbo.wrapper.com.ComThread.Release();
}
En exécution le programme sous Eclipse, la connexion est refusée avec une erreur No -111.
Les programmes d'exemple sous VB fonctionnent correctement !
Ou pourrais-je trouver des exemples en Java ?
Merci d'avance
Laurent
Bonjour Laurent,
I think you would get more answers to your Question when you write it in English. Also there is a special Forum for Java questions.
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurent,
Gregor is right, the lingua franca (interesting Wikipedia entry about that term: http://en.wikipedia.org/wiki/Lingua_franca) on SDN is English.
Althought I was happy to read a couple of Frensh word and understanding most of it your chances of a reply are much better when you post in English, even if it is broaken English.
Everyone understands, Mark.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.