RAD(Rational Application Developer)-清理与发布与重启 [英] RAD (Rational Application Developer) -- Clean vs. Publish vs Restart

查看:169
本文介绍了RAD(Rational Application Developer)-清理与发布与重启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Websphere 6.1环境中使用Spring 3.0框架.我正在使用的IDE是RAD(Rational Application Developer)7.5.昨晚我正在处理一个问题,发现在工作区中进行更改后,我的代码没有在服务器上100%刷新.我的问题是,从Websphere的角度来看,以下几点之间有什么区别?

I am currently using the Spring 3.0 framework in a websphere 6.1 environment. The IDE I am using is RAD (Rational Application Developer) 7.5. I was working on a problem last night and I found that my code wasn't being 100% refreshed on the server after making a change in my workspace. My question is what is the difference from websphere's perspective between the following:

  1. 在安装了EAR的情况下重新启动整个服务器
  2. 在WebSphere内清洁EAR
  3. 点击项目并选择发布

在开发J2EE应用程序时,其他Application Server/IDE是否存在相同类型的同步问题?

Do other Application Server / IDEs have the same type of syning issues when developing J2EE applications?

推荐答案

使用RAD,这是默认行为.当您清理"时,它会删除已编译的对象,并通过全部构建"来重新创建它们,然后执行发布".当您构建"时,它会构建它认为必要的任何内容,然后进行发布".当您全部构建"时,它会构建所有对象,然后执行发布".

With RAD here's the default behavior. When you 'clean' it gets rid of the compiled objects and recreates them via a 'build all' then does a 'publish'. When you 'build' it builds anything it thinks is necessary then does a 'publish'. When you 'build all' it builds all objects then does a 'publish'.

当您(或通过上面的命令通过IDE执行)发布"时,它将获取所有已编译的对象,并将它们部署到为此项目设置的服务器上(如果服务器正在运行,则通过热交换) ).热插拔在某些情况下(例如JSP)工作得很好,但在其他情况下(配置文件,EJB等)则不能很好地工作.如果无法正确进行热插拔,则需要重新启动服务器.

When you (or your IDE via the commands above) does a 'publish' it takes all of your compiled objects and deploys them onto the server that you've setup for this project (via a hot swap if the server is running). Hot swaps work well for some things (such as JSPs) but not as well for other things (configuration files, EJBs, etc). If unable to do a hot swap correctly you need to bounce your server.

例如,如果您具有要自动构建的RAD设置,则服务器正在运行,并且您更改了EJB,那么将发生以下情况:
1. EJB将被编译
2.如果项目正常,RAD将部署您的更改
3.服务器可能无法提取您的热交换更改,因此服务器将继续运行旧代码

For example, if you have RAD setup to automatically build, your server is running, and you change an EJB what will happen is:
1. The EJB will be compiled
2. If the project is OK RAD will deploy your changes
3. The server will probably not be able to pickup your hotswapped changes so the server will continue to run the old code

发生这种情况时,服务器会反弹,代码将被提取.

When this happens bounce the server and the code will be picked-up.

这篇关于RAD(Rational Application Developer)-清理与发布与重启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆