search for: connection_methods

Displaying 4 results from an estimated 4 matches for "connection_methods".

2010 Oct 30
12
Anyone successfully ran JRuby 1.5.3, Rails 3, Tomcat6
Hi, I''ve been trying to get JRuby 1.5.3 with Rails 3 to run on the Tomcat6 server with little success. Has anyone been able to do this? If so, what issues did you have to overcome to get this to work? Also, is this a combination that you would recommend for a production site, or is it all too new and untested? The latest issue I''m stuck on right now is with the mysql-connector-
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
...-1.0.2- java/lib/arjdbc/mysql/adapter.rb:14:in `configure_connection'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-1.0.2- java/lib/arjdbc/mysql/adapter.rb:385:in `initialize'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-1.0.2- java/lib/arjdbc/jdbc/connection_methods.rb:6:in `new'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-1.0.2- java/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connection'' /jruby-1.5.3/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-1.0.2- java/lib/arjdbc/mysql/connection_methods.rb:18:in `mysql_connec...
2007 Mar 11
0
10 commits - libswfdec/js libswfdec/swfdec_js_color.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_video.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_script.c player/.gitignore
..._to_string (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) -{ - JSString *string; - - string = JS_InternString (cx, "[object Object]"); - if (string == NULL) - return JS_FALSE; - - *rval = STRING_TO_JSVAL (string); - return JS_TRUE; -} - static JSFunctionSpec connection_methods[] = { { "connect", swfdec_js_connection_connect, 1, 0, 0 }, - { "toString", swfdec_js_connection_to_string, 0, 0, 0 }, {0,0,0,0,0} }; diff --git a/libswfdec/swfdec_js_movie.c b/libswfdec/swfdec_js_movie.c index 1aa2b87..e0f3f54 100644 --- a/libswfdec/swfdec_js_movie....
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
..._to_string (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) +{ + JSString *string; + + string = JS_InternString (cx, "[object Object]"); + if (string == NULL) + return JS_FALSE; + + *rval = STRING_TO_JSVAL (string); + return JS_TRUE; +} + +static JSFunctionSpec connection_methods[] = { + { "connect", swfdec_js_connection_connect, 1, 0, 0 }, + { "toString", swfdec_js_connection_to_string, 0, 0, 0 }, + {0,0,0,0,0} +}; + +static void +swfdec_js_connection_finalize (JSContext *cx, JSObject *obj) +{ + SwfdecConnection *conn; + + conn = JS_GetPrivate (c...