The java method can handle varargs:
new java(array("java.lang.String", ...)) should work.
For method invocation there is a invokeMethod() method within JavaClient:
__javaproxy_client_getClient()->invokeMethod(oid, method, argarray)
oid is $obj->__java, method a string and argarray the argument array.
Maybe we should make this an official API.
Regards,
Jost Boekemeier
--
Apr 8, 2009 2:56 nachm. schrieb am <
php...@li...>:
I am using the java bridge to call routines on the database server from
php through java. After writing several of these, I have noticed that
most of the calls could be generalized if there were a way of passing a
variable number of parameters. I remember in C you could use argc, *argv[
]. The question comes up. Can you pass a pointer to an array in PHP to
Java using the java bridge? Has anyone done anything like this with the
java bridge? Work around?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|