Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
14%
200 - 500 GB
32%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
14%
> 2000 GB
21%
Total votes: 28

Baanboard at LinkedIn


Reference Content

 
java.execute.static.method.sync
By patvdv at 26 Feb 2008 - 21:57


java.execute.static.method.sync

Syntax

long java.execute.static.method.sync(string class.name, string method.name, [... ])


long java.execute.static.method.async(string class.name, string method.name, [... ]))

Description

Executes a Java static method, with no return type, within the JavaVM. java.execute.static.method.sync() returns to the caller AFTER completion of the Java method. Java.execute.static.method.async() returns to the caller BEFORE completion of the Java method.

Arguments

class.name

name of the Java class to call (e.g.: com.baan.baanvm.Test)

method.name

name of the static Java method in that class to call (e.g.: runMe). ...: optional parameters for that method. All BaanC types at this time (string, long, double) are supported.

Return codes

0 Success
-1
JavaVM not supported on this platform; or
-1 unable to locate Java class and method at the Java side
-2 JavaVM integration not available (not supported on this OS)
-3 JavaVM integration not available (Java VM not properly configured)
-4 invalid method argument

Example

 long retval
long longArg
string stringArg(30)

| fill longArg and stringArg….

retval = java.execute.static.method.async("com.baan.baanvm.Test", "runMe",
longArg, stringArg)

Related topics

0
No votes yet


All times are GMT +2. The time now is 06:52.


©2001-2018 - Baanboard.com - Baanforums.com