views:

1738

answers:

4

What are the recommended plugins for eclipse to work with weblogic? Specifically I would need to work with older version of weblogic, 8.1, however I could use any version of Ecplise. I would like to debug the application and set breakpoints etc.

My bigger task is to move the project over to Jboss, can I deploy the same app on both app servers within Eclipse with presumably 2 sets of config files etc, any advice? 2 separate projects?

+1  A: 

In order to debug your code running on Weblogic (or any other java server for that matter) you don't need anything but Eclipse itself. Search Google for java remote debugging.

As for deploying to Weblogic and Jboss - as long as your code is not using proprietary stuff from J2EE containers vendors you should be fine with one project. Standard configuration files will be common, container specific files will be separate and often won't even have to be removed in build time as container would just ignore them. This way the same artifact (e.g. War) could be deployed to both containers.

maximdim
Thanks for the advice +1, however it seems like there are these plugins too, so then the question becomes, what are they for?
Ville M
Plugins are mostly for starting containers directly from Eclipse. It is convenient as you have for example log output in Eclipse console, no need to switch between windows etc., but this is not mandatory by any means. WL 8.1 is quite old and as you mentioned there are no plugin for it in Eclipse. There used to be third party plugin but I think it was discontinued too.
maximdim
@maximdim This claim is simply **not true**. Many customers are still using WebLogic 8.1 and Eclipse support of version 8.1 **is** still provided by the (official) Oracle server adapter extension. See my answer for details. http://stackoverflow.com/questions/1987061/how-to-work-with-weblogic-in-eclipse/2013108#2013108
Pascal Thivent
@Pascal: Thanks, I didn't know that.
maximdim
A: 

This concerns the JBoss part of the question: If there are real product-specific differences in the code, they should hopefully be localized to one or few classes. Apart from this hygienic measure, it would be unhelpfully painful to separate your project into two.

Most of the configuration files should be the same for the two environments too; if not, you may consider doing what we do at my job site: We have a conf_XXX and a conf_YYY directory for separate configuration files.

The problem of including/not including the correct files per deployment environment should be delegated to one or two ant build scripts. If there are indeed file differences, you can create a proj_Weblogic.war and a proj_jboss.war and deploy those to the appropriate servers. If you can't find specific deployment ant tasks, you can still use straight file copy tasks or scp to move your WAR files into the server's appropriate deployment directories.

Carl Smotricz
+1  A: 

This is easy with IntelliJ. No plugins needed - it's built in. I'd recommend junking Eclipse and trying a better IDE.

duffymo
Is IntelliJ free these days?
Ville M
From web page it looks like you have to pay to have the J2EE support, this rules out intelliJ for me.
Ville M
community edition is free.
duffymo
dyffymo, from website it appears "No plugins needed - it's built in." is only part of the "ultimate" version?
Ville M
I don't know, because I ante up for a license every year. It's worth it to me.
duffymo
+1  A: 

If you are using Eclipse with the WTP, then Weblogic Integration is available through an additional server adapter. To get it, right-click the Servers view then select New > Server and click on Download additional server adapters. Select the Oracle extension from the list and proceed with the install. Once installed, you'll be able to add a new server for WebLogic from version 8.1 to 11g (for BEA WebLogic Server v8.1, look under BEA System, Inc.).

alt text

If you have WTP servers created for JBoss and WebLogic, it's definitely possible to deploy and run the same project on both of them, there is nothing particular to do (the proprietary deployment descriptors can coexist if you want to use them, you don't have to create 2 projects for this).

Pascal Thivent
in the install new server adapter dialog, after a few minute wait I get no adapters found. I have proxy server configured in the network settings in eclipse, but could it be failing to connect anyway, any ideas?
Ville M
In your proxy configuration, do you have a "Use this proxy server for SSL"? checkbox? If yes, check it.
Pascal Thivent