Wish support for Node.JS

salim safran

Member
Licensed User
Longtime User
I was wondering if possible to create web applications with b4j and transforms it to a real time web application tool using node.js and it's modules.
 

Roycefer

Well-Known Member
Licensed User
Longtime User
Can you elaborate on what you mean? Are you asking if it's possible to transpile B4J code into Node.js code that runs in the Node.js runtime?
 

salim safran

Member
Licensed User
Longtime User
Can you elaborate on what you mean? Are you asking if it's possible to transpile B4J code into Node.js code that runs in the Node.js runtime?

yes, for example someone made a library for QT called qt-node to write web application server on c++ platform, some made WT based on c++ B4J is seems to be built on java and having a node.js library or find away to be embedded with node.js to create web application servers with this basic looking scripting language will give this tool real new dimensions and new profiting market
 

Roycefer

Well-Known Member
Licensed User
Longtime User
I'm not able to find this qt-node project. I found one called Node-Qt but that just wraps the Qt widgets library for use in Node projects. I also found this project: http://nodyn.io/ but it seems fairly new. If you were so inclined, you could wrap that into a B4J library and then you'd have a Node.js server running in the JVM that you could program in B4J. I haven't looked at the Nodyn API but I suspect it's going to make heavy use of lambdas, something that B4J doesn't have (yet).

Anyhow, if you're really looking for a high performance, secure, event-driven HTTP server, B4J already has that in the form of a wrapper for the Jetty library call jServer.
 

Julien Brunelle

Member
Licensed User
yes, for example someone made a library for QT called qt-node to write web application server on c++ platform, some made WT based on c++ B4J is seems to be built on java and having a node.js library or find away to be embedded with node.js to create web application servers with this basic looking scripting language will give this tool real new dimensions and new profiting market

node.js is a simple web tcp socket program... just create an error handler in your node.js code....
what i'm saying is the b4j client will produce the error lost connection and if you program your server code in with error handling it will report it back to you without braking the connection


try
{
//statements that may cause an exception
}

catch(exception(type) e(object))‏
{
//error handling code<---- back to b4j as a web socket call to the client
}

bridge b4j connector needs shh.... web host provides wont let you install them unless its VPS box and your responsible for the server box..... help help my server when mad...

web hosting CEO Julien @ 3taccount.com
 
Last edited:
Top