Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HELP - Non-Java programmer  RSS feed

 
Sean Rhone
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have inherited a mess, the company I work for outsourced some app development and after receiving the code fired to company. My problem is this, I'm a C# developer and I'm being asked to make changes to our Java J2EE applications and do not understand the structure.

We have an appliation running on BEA webserver and the .ear file was installed/unpacked (what ever the term is) and I need t make changes. I have the source code, so how can I make changes to a web page servered up by the app? Can I find the page on the server and just make changes? Do I have to make the change, make another .ear file and redeploy?

Any light you can shed on this subject would be greatly appriciated!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. Personaly I'd go tell your project manager there is no way you can deal with this without proper training or time to learn from scratch. Sure C# borrows heavily from Java, so I'm sure you could quickly get to grips with the language basics, but there is so much more to know about the deployment of J2EE apps which your C# background will not help you with. Weblogic too is big and complicated, and Java does not have nearly as good IDEs as Microsoft produce to help easy the development process.

All I can really recommend is to start at the beginning with the Java turoials on Sun. Take some time to learn before trying to dive into this. In my experience it is a far quicker route to go an learn the basics of a technology first before trying to jump in and work with it.
 
Sean Rhone
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. I am working on the training issue but it is slow going to say the least. But can you tell me if I need to create a new .ear file and redeploy to make a change or is it possible to change a class file and just over-write the current one?

Just need to know what is involved (high level at least) for changing code so I can take that to my boss and force their hand.

Thanks again
 
Chris Johnston
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever you make a change to the code in a J2EE project you need to redeploy. Usually this involves over-writing the ear file that exists in the deploy directory. Whether this involves restarting the app server (Weblogic) or not depends on the server. Most servers these days support hot deploy where the server detects a change in the ear file and will undeploy the old version and deploy the new, updated version.

It is always better to change the source code and recompile into an ear file then to try and change the contents of the ear file itself. Generally, the ear file will only contain compiled classes, so changing the code is not an option.
 
Sean Rhone
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, well not the answer I was hoping to hear but thanks. Can anyone here suggest an IDE to use for J2EE development?
 
Ravish Ahuja
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, WSAD is a very good IDE
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ravish Ahuja:
hi, WSAD is a very good IDE


What about JDeveloper.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by srini vasan:


What about JDeveloper.


Also Eclipse and IntelliJ. Emacs has a fairly decent Java IDE capability if you're tight for resources. Done one or 2 major projects that way.

You can hotfix a JSP in WebLogic, but if the EAR is ever redeployed, the fix will get overlaid. Good practice is to fix the JSP in the original source tree, create a new EAR and deploy it.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean,
I strongly recommend getting an IDE. It will create the EAR and handle some J2EE complexity. This is especially valuable since you don't have experience with J2EE. Would your boss rather buy a tool for $1000 or have you waste weeks?

Make sure you get the "professional" version of the IDE if there are multiple versions. Those are the ones with J2EE support. Some, like WSAD, only come with J2EE support.

If you have more IDE questions, we have an "IDEs and other tools" forum below.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!