Use cors or jsonp.
Cors works only in few browsers. With Jsonp you can only get things
(no post,delete,update)
Another thing i will try is to put the two things behind a reverse
proxy (http-proxy from nodejitsu is great) and have the tomcat thing
in the root while the node in /myrestyadayada
2012/6/3, Sean McGowan <
smcg...@gmail.com>:
> I'm running NodeJS locally, with a simple HTTP server on port 8124.
>
> I'm running my web application in Tomcat on port 8080.
>
> I want my web application to make REST calls to the Node server.
>
> Any idas how I get around the cross-port communication issue here?
>
> Thanks,
> Seán
>
> --
> 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
>
--
Enviado desde mi dispositivo móvil