Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a question about deploying EAR files  RSS feed

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks.. I have an EAR file, which is composed of a WAR file and a JAR file. Sometimes I have to do very small changes on a single java class or servlet, but I have to compile ALL my files (using ant) + package my files + deploy it in my server AGAIN, and that takes time, even if your project is small and you do a very simple modification... How do big applications handle this? Do they have to re-compile all files + re-package + re-deploy it again?
thanks
 
vijay256
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Andres Gonzalez
pls give the steps to deploy a entity bean.
now i can create jar for entity bean separately but i don't know how to create WAR file using J2EE Deployer.
pls give in detail.
thnks
vijay
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi vijay256. using the J2EE deployer? no idea. As I mentioned before I use ant with XDoclet and it does it automatically using the build.xml file.. I just write the bean implementation and it generates all deployment descriptors, interfaces, etc..
back to my very first post... any ideas?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andres Gonzalez:
Hi folks.. I have an EAR file, which is composed of a WAR file and a JAR file. Sometimes I have to do very small changes on a single java class or servlet, but I have to compile ALL my files (using ant) + package my files + deploy it in my server AGAIN, and that takes time, even if your project is small and you do a very simple modification... How do big applications handle this? Do they have to re-compile all files + re-package + re-deploy it again?
thanks

In short, yes. That's what they do. BTW, some application servers support a concept called "Hot Deployment" for very small changes, but most of the time, people follow the steps you've described.
Kyle
 
William Barnes
Ranch Hand
Posts: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are switching over to WebSphere 4.0 and ran into the same issue. And yes it appears you need to rebuild and deploy all over again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!