Java APi for Node.js

6,850 views
Skip to first unread message

pushpinder rattan

unread,
Jul 13, 2012, 3:28:16 AM7/13/12
to nod...@googlegroups.com
Folks,


Is there any integration of Java and  NodeJs?? Can we invoke nodejs using Java?


thanks
Pushpinder

Rod Vagg

unread,
Jul 13, 2012, 5:07:03 AM7/13/12
to nod...@googlegroups.com

node-java is an excellent API for calling Java from node: https://github.com/nearinfinity/node-java
The other way around is a bit problematic I think because of the evented nature of node. There is a Java implementation of dnode that may be worth looking at for communication between Java and node processes. 
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

pushpinder rattan

unread,
Jul 13, 2012, 6:58:28 AM7/13/12
to nod...@googlegroups.com
Thanks Rod

Alexey Petrushin

unread,
Jul 13, 2012, 5:12:36 PM7/13/12
to nod...@googlegroups.com
ZeroMQ may be an option

Jeremy Darling

unread,
Jul 13, 2012, 6:29:19 PM7/13/12
to nod...@googlegroups.com
Rhino is the "Node.js" of the Java world (traditionally speaking).

But, a distributed MQ like Zero is a way to integrate via message passing.  My MongoMQ could also be used as could just about any other MQ that is supported by Java and Node.

If your already using an enterprise system like Tibco EMS you can also place your Node handlers on that bus without too much work.

As for directly integrating the Node runtime into Java, that isn't going to happen (again look to Rhino for that).  Node is native, Java is a VM.  In memory IPC via a C/C++ wrapper is about as close as you could get.

 - Jeremy

Matthew Dalrymple

unread,
Jul 21, 2013, 3:00:12 PM7/21/13
to nod...@googlegroups.com
What is your suggestion for a way of hooking up node.js to a Tibco EMS? Would you wrap a native Tibco EMS library as a package for node and do it that way? Just trying to figure this out as node would work very well with Tibco EMS.

Thanks

Jeremy Darling

unread,
Jul 22, 2013, 11:46:36 AM7/22/13
to nodejs
I would look to Rhino for use with Tibco EMS as a BW Process.

That or, the way that we actually did this, create an EMS BW Process that acts as a bridge between a MongoMQ (MongoDB Capped Collection used as a message queue) and TibcoEMS.

If there were a JMS Adapter for Node.js then we could put Node.js processes on EMS.  But alas, I know of none.

 - Jeremy


--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sam Roberts

unread,
Jul 25, 2013, 2:18:31 PM7/25/13
to nod...@googlegroups.com


On Friday, July 13, 2012 3:29:19 PM UTC-7, Jeremy wrote:
But, a distributed MQ like Zero is a way to integrate via message passing.  My MongoMQ could also be used as could just about any other MQ that is supported by Java and Node.

strong-mq, via stomp-client, supports ActiveMQ, and ActiveMQ has java/JMS integration. might be one way of cluster java and node code together.

 
As for directly integrating the Node runtime into Java, that isn't going to happen (again look to Rhino for that).



Mikkel Wilson

unread,
Jul 25, 2013, 2:43:30 PM7/25/13
to nod...@googlegroups.com
If you're not married to node.js specifically, http://vertx.io/ is a fast, asynchronous polyglot container that supports java and javascript running in the same context. It runs in the JVM and can actually be faster than node for some operations.

-Mikkel

Stephen Belanger

unread,
Jul 25, 2013, 2:48:06 PM7/25/13
to nod...@googlegroups.com
There's also some attempts at a node compatibility layer over vertx.io, like nodyn.io.

Matthew Dalrymple

unread,
Oct 28, 2013, 11:44:31 AM10/28/13
to nod...@googlegroups.com
Hmmm.. that is unfortunate. I was hoping to have a nice easy way to do pub/sub with Tibco EMS

Alexey Petrushin

unread,
Oct 28, 2013, 4:50:07 PM10/28/13
to nod...@googlegroups.com
vert.x, rhino and so on may have good java integration, but it also very exotic way to use JS, it has very little usage in wild - and so you taking high risk by using it.
Reply all
Reply to author
Forward
0 new messages