View Full Version : Setting up Eclipse for Resin development (Complete newbie)
04-08-2010, 04:52 AM
I am completely new to Eclipse, and programming with Java in general, and I am getting frustrated trying to figure out how to setup a nice development environment with debugging for Resin. Had no issue with the tutorials for Tomcat, but Resin is another beast entirely it seems.
I have done casual coding in C# and C++ in Visual Studio, and PHP in basic text editors. That is the extent of my knowledge.
Would it be possible for someone to post a step-by-step on getting Eclipse setup with debugging and easy deployment of the sample apps on the Caucho site? Or is this just not available? Am I spoiled by Microsoft?
Have you looked at: http://wiki.caucho.com/Eclipse
With that plugin, you would need to define a new Server in Eclipse, and create a Dynamic Web Project. Then create a sample jsp or php file, then deploy to the Server you just created.
04-09-2010, 06:23 AM
Hey, thanks so much for the response. I can't believe I didn't find that plugin, and it was actually easy to setup, excepting having to change my library path to \win64 so Resin doesn't die.
Unfortunately, the technology I was most interested in (Comet) doesn't seem very reliable.
The Demo page works like 20% of the time for me no matter what browser I use, even the caucho hosted one doesn't always work. Not sure what's going on. I had a friend test and he said it didn't work either.
Has anyone deployed a Comet application similar to the example here (http://caucho.com/resin-4.0/examples/servlet-comet/index.xtp)?
The next version of our plugin should fix the win64 issue.
The problem with our examples is that some of them are old, and some are tied to a specific version of Resin and they don't play well with the version of Resin that we're running on our site.
Can you tell me the exact issues you're having with Comet? Comet is deprecated in favor of Web Sockets:
04-10-2010, 12:07 AM
My problem is just that it doesn't seem to work on Firefox nor on Opera consistently.
Usually it will stop at 1 and sit there until it times out. Sometimes it'll make it to 3, rarely it will finish properly.
I didn't make any modifications, I just copy/pasted the files into Eclipse, exported to Resin, and put the URL in my browser. I thought it was some configuration issue but the Demo page does the same thing.
I'd love to move to web sockets, but I need something that works on most browsers.
Thanks for the feedback. I'll need to try out the example myself.
vBulletin® v3.8.6, Copyright ©2000-2017, Jelsoft Enterprises Ltd.