Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT vs. Eclipse Deployment to EAServer

 
Udit Manektala
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<rambling thoughts>

We use JBuilder\EAServer at my workplace and sinc I hate JBuilder, I wanna switch to Eclipse but can't find an apropriate plugin which would allow deployment to EAServer. (Lomboz has never worked for me.)

So thinking to myself, I realise that all thats needed for a Java IDE to connect with an App Server is some way to deploy the application and some way to start\stop\restart the service.

I realised that if I used Eclipse for development, I could make custom ANT scripts for deploying to EAServer and the start\restart of the service could be accomplished by small command line batch files (using net stop and net start).

So one drawback to this would be that I'd have to make a different ANT file for every project and another is that there might be no shortcut inside Eclipse to run the Server restarts\builds from.

</rambling thoughts>


1. So, is that all there is to connecting an IDE to an app server ?..automatic deployment configuration and shortcuts for server restarts ? Or am I missing something deeper ?

2. Can shortcuts for batch files\command files\command line directives be added to eclipse ?

3. Can ANT do all this that i just rambled about ?

Background Info: We use Servlets\JSP here... no EJBs anymore. Dont know if that makes a difference.

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34835
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Udit,
1) That is most of what IDE integration is. Some IDEs allow you do edit server specific configuration files from within the IDE.

2) I know they can be stickied at the top of the run menu. I imagine there is a shortcut option, but I don't know how to do that.

3) Yes.

Note that technically you don't need a different Ant script for each project. If you have a similar structure/naming conventions for each EAR, you can use a single build.xml and just have different property files. We have one script that we use for about 20 ears.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic