开发者

Can I use Eclipse and GlassFish together?

I use Eclipse as IDE. I use Eclips开发者_开发问答e to test my Java apps.

But now I want to make website with Spring, Hibernate. Can I do it through Eclipse only or I need to install GlassFish.

After installing GlassFish can I see some button on Eclipse which put required files automatically in required folders, I mean I don't want to manually copy the files in diff directories.

Do I add Spring, Hibernate in Eclipse or GlassFish?

Something like click on create web app.


You should install Oracle Enterprise Pack for Eclipse, which includes GlassFish tools. You can get it from here:

http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html

Alternative, if you have Eclipse IDE for Java EE Developers, got to Window -> Preferences -> Server -> Runtime Environments -> Add. Then click on "Download additional server adapters. That will show you a list of server adapters that Eclipse knows about, including GF Tools from OEPE. The wizard will guide you through the process of installing it.

Beyond that, if you need help using Java EE facilities of Eclipse, google "Eclipse WTP tutorial" or similar. There are many articles written on the topic.


No, you don't require Glassfish. You can use any Java web-app container like Jetty, Tomcat, Weblogic etc. Tomcat is the easiest to integrate with Eclipse.

I have used Glassfish previously, but much like stand-alone. I have never integrated Glassfish with Eclipse, but it seems like as easy as Tomcat integration. See here.

http://dlc.sun.com.edgesuite.net/glassfish/eclipse/

and

here

http://dlc.sun.com.edgesuite.net/glassfish/eclipse/GF-Tools-for-Eclipse-Guide12.pdf

As quoted in the guide

To publish Projects

To publish applications to the GlassFish Server, use the following procedure:

  1. Select Servers view.
  2. Select GlassFish Server.
  3. Right click and select Publish fromServer popup menu. The selected applications are published to the GlassFish Server.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜