Questions tagged [ringojs]

RingoJS is a JavaScript runtime written in Java.

RingoJS is a CommonJS-based JavaScript runtime written in Java and is based on the Mozilla Rhino JavaScript engine. It is intended for server-side use. See http://ringojs.org.

27 questions
28
votes
7 answers

How to read an entire text stream in node.js?

In RingoJS there's a function called read which allows you to read an entire stream until the end is reached. This is useful when you're making a command line application. For example you may write a tac program as follows: #!/usr/bin/env ringo var…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
6
votes
5 answers

Is using Node.js or Ringojs safe for live websites?

As stated in the title, I would like to know if it's safe to develop a website using one of the actuals "omg" platforms that are Node.js and Ringo.js at their actual version. Also, I would like to know if they support cookies/sessions and how do…
Cybrix
  • 3,248
  • 5
  • 42
  • 61
4
votes
1 answer

Which platform are GMail server side JavaScript running on?

According to this question and this article, GMail server side is written in JavaScript. I'm wondering which platform is GMail server side JavaScript running on. Node.js? RingoJS?
Morgan Cheng
  • 73,950
  • 66
  • 171
  • 230
4
votes
2 answers

How are native functions created in Rhino?

I've been looking at the Rhino documentation and source code for a clue as to how to implement my own global native function. This task is however more complicated than I expected it to be. After reading the code of the implementation of the require…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
3
votes
1 answer

How are precompiled JavaScript modules loaded in RingoJS?

Okay, so I created a JavaScript file called test.js which contains the following code: print("It works!"); I compiled it using the Rhino JavaScript Compiler without any errors. Then I created a new file called foo.js which contains this code: var…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
3
votes
1 answer

Is it possible to compile JavaScript files using RingoJS to Java class files?

I'm creating modules in RingoJS, and I would like to compile them to Java class files. I know that it's possible to compile Rhino source files to Java class files. I was wondering if there's a way to use Mozilla's JSC tool to compile RingoJS modules…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
2
votes
0 answers

Using RingoJS EventEmitter... or how to use coffeescript compiler with RingoJS

I am trying to get the coffeescript compiler working with RingoJS (we're a Java shop...) I have had some success - https://github.com/jashkenas/coffee-script/wiki/Using-CS-with-Java-Rhino Now I am trying to get the coffee-script/command stuff (…
Chris Kimpton
  • 5,546
  • 6
  • 45
  • 72
2
votes
1 answer

Reading and writing data using RingoJS on App Engine

Okay, I'm creating a RingoJS project and hosting it on Google App Engine. Now App Engine allows you to use java.io.FileInputStream to read data from the filesystem, but it doesn't allow you to use java.io.FileOutputStream to write data to the…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
2
votes
1 answer

How do I get the real filesystem path from within RingoJS webapp?

If I manage to get ServletContext object from java's HttpRequest, I'd manage to accomplish this, but I couldn't find out how to access these objects from Ringo wrappers. This is needed to create a file inside the webapp with some saved information.…
fedd
  • 880
  • 12
  • 39
2
votes
1 answer

How can I import my own .class file into a RingoJS application?

Good day, I would like to know how I could import and call my library contained in a .jar file directly through RingoJS. Thank you. Edit: Here is some additional informations. I have compiled a class named xsltProcessor that uses the SAXON library…
Cybrix
  • 3,248
  • 5
  • 42
  • 61
2
votes
1 answer

ringojs fileupload example

Does anyone have an example of uploading a file to the server using ringojs?
Scott Klarenbach
  • 37,171
  • 15
  • 62
  • 91
2
votes
1 answer

Uncaught exception from servlet javax.servlet.UnavailableException: java.security.AccessControlException

After I deploy my web app to google app engine servers, all seems fine: 99% Closing update: new version is ready to start serving. 99% Uploading index definitions. Update completed successfully. Success. Cleaning up temporary files... However,…
Malloc
  • 15,434
  • 34
  • 105
  • 192
1
vote
1 answer

RingoJS javascript - get user input on console

When using Rhino or RingoJS, one can use print on the console REPL to print output (alert is not available). What can be used to read user input on the console, instead of prompt? Is there somewhere I can find information on these conventions, what…
sayth
  • 6,696
  • 12
  • 58
  • 100
1
vote
1 answer

How are daemon processes created in RingoJS?

I would like to use the ringo/daemon module to create daemon processes in RingoJS. However there doesn't seem to be sufficient documentation on how to do so, and I'm really confused. Any help would be greatly appreciated. Perhaps someone could link…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
1
vote
1 answer

How can I set and read session data in RingoJS?

Good day, I have recently started playing with RingoJS along with Stick middleware and I am now stuck with sessions. I can't make it work. main.js var {Application} = require( "./_lib_/stick" ), app = exports.app = Application(); app.configure(…
Cybrix
  • 3,248
  • 5
  • 42
  • 61
1
2