You already attached h2 database connection in node js? Could you let me know how to coonect to h2 database?
I need your help. thanks in advance!!! 2010년 7월 12일 월요일 오전 11시 26분 47초 UTC+9, Arthur Blake 님의 말: > > Hi, I've been lurking here for a little while. JavaScript is my > favorite language these days (as I suspect it probably is for many > others on the list too.) > > I've been interested in doing server side JS as a mainstream approach > for large projects, for quite some time, but haven't run across > anything that looks quite so promising until nodeJS came along. > > So now I'm getting ready to use nodeJS for a real world projects for > the first time, and the first issue I have is accessing some large pre- > existing databases. > > The approach I have in mind is to incorporate a small Java service > that acts as a bridge to the database. That way I can take advantage > of the maturity and breadth of available JDBC drivers for accessing > almost any kind of database (in this case SQL Server.) > > I've noticed some people frown upon the approach of integrating NodeJS > with Java, but in my mind, it's just another option among many > potential solutions and the power of the approach should not be > discounted. > > I already have quite a bit of infrastructure for accessing any kind of > JDBC database over a nice JavaScript API in the browser (see my > project, http://dbframe.com), and I think I could easily re-use a lot > of that code with NodeJS. > > The basic approach is to have a thin JavaScript API on top of a JSON- > RPC (jabsorb) interface that connects to a small custom java based web > service running on the database server (or elsewhere on the LAN) that > maintains a connection pool and acts as a lightweight proxy to the > database. Jetty and continuations would be used on the Java side in > order to keep thread usage at a minimum. > > I wanted to get feedback on this type of approach. Since there are > only a few native database bindings at this point (as far as I know,) > using Java as a stopgap seems like an approach that could get a lot of > mileage (not just for database access, but also for accessing > thousands of other rich and mature libraries available on Java.) > > Thanks -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
