List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:July 3 2007 12:41am
Subject:Rev 137: Reenabled swig directors for Java so that the Async stuff actually called the Java async callback. in http://bazaar.launchpad.net/~ndb-conne...
View as plain text  
------------------------------------------------------------
revno: 137
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Mon 2007-07-02 17:41:04 -0700
message:
  Reenabled swig directors for Java so that the Async stuff actually called the Java async
callback. 
modified:
  java/com/mysql/cluster/ndbj/examples/TestBaseCallback.java
testbasecallback.jav-20070703002120-jsnz1ul38pp1h3w3-2
  java/ndbapi.i                  ndbapi.i-20070130002924-gcvhapmvh0lu1pkd-3
=== modified file 'java/com/mysql/cluster/ndbj/examples/TestBaseCallback.java'
--- a/java/com/mysql/cluster/ndbj/examples/TestBaseCallback.java	2007-07-03 00:21:23 +0000
+++ b/java/com/mysql/cluster/ndbj/examples/TestBaseCallback.java	2007-07-03 00:41:04 +0000
@@ -13,8 +13,8 @@
     this.myNdb=theNdb; 
   }
 
-  public void callback(int result, NdbTransaction myTrans) { 
-    System.out.println("result " + result);
+  public void callback(int result, com.mysql.cluster.ndbapi.NdbTransaction myTrans) { 
+    //System.out.println("result " + result + " value: " + this.myRs.getInt("ATTR));
     try { 
     	System.out.println("value " + this.myRs.getInt("ATTR2"));
     } catch (NdbApiException e) { 

=== modified file 'java/ndbapi.i'
--- a/java/ndbapi.i	2007-06-29 23:04:54 +0000
+++ b/java/ndbapi.i	2007-07-03 00:41:04 +0000
@@ -17,7 +17,7 @@
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
 
-%module ndbapi
+%module(directors="1") ndbapi
 
 
 %include "ndbglobals.i"

Thread
Rev 137: Reenabled swig directors for Java so that the Async stuff actually called the Java async callback. in http://bazaar.launchpad.net/~ndb-conne...Monty Taylor3 Jul