How to use Node.js efficiency in existing java web application

I have an existing eCommerce web application in JSF 1.2 framework . We wish to use node.js technology's benefits in our existing application .

Our Focus : Keep View[html ] part in JSF framwork and All I/O [Database-MySql] operation will be managed by node.js .

We can do CRUD operation using Node.js . But how do we send/receive data between java-managed-Bean and node.js ?

Is this architecture useful ? or any other better options/suggestion ? .Or do we need to completely switch to Node.js technology stack ..

With regards,
Sijo

I don't think this is a good idea. If you absolutely want to use node.js, you should implement your presentation layer with node and keep the crud operations in java and communicate via json. node.js is only faster if you have small operations per callback, e.g. return cached html, json etc. If you have a lot of crud operations node.js is not particularly well suited for the task. You could also take a look at the play framework http://www.playframework.com/. It is a high performance asynchronous java / scala framework that may fit your needs.