产品模式下的weblogic在更新class后,有什么办法手动reload servlet而不用重启或重部署???

折腾_苏州 2009-03-27 10:13:20
为了性能着想,weblogic运行为产品模式,这个时候不再监视servlet的更新。
如果更新了class后,必须要进行重启,才能生效。这个很麻烦。
有没有什么版本能够手动去reload servlet呢?
或者别的什么技巧? 100分送上。
试过:在一个JSP里面引用该类然后更改这个JSP, ClassLoader会在那时去检查更新。这个办法不行。
...全文
526 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuyanfeiyu_82 2011-06-29
  • 打赏
  • 举报
回复
总司令,说详细点么,我是张也弛
YuLimin 2009-06-21
  • 打赏
  • 举报
回复
JavaRebel
twinkleliang 2009-06-18
  • 打赏
  • 举报
回复
学习了~有高人能总结下关于weblogic,websphere,tomcat,jboss 的热部署相关内容么?想多了解下
eproe 2009-06-17
  • 打赏
  • 举报
回复
[Quote=引用楼主 seu07201213 的帖子:]
为了性能着想,weblogic运行为产品模式,这个时候不再监视servlet的更新。
如果更新了class后,必须要进行重启,才能生效。这个很麻烦。
有没有什么版本能够手动去reload  servlet呢?
或者别的什么技巧? 100分送上。
试过:在一个JSP里面引用该类然后更改这个JSP, ClassLoader会在那时去检查更新。这个办法不行。
[/Quote]

这个只能是重启服务的方式。
深夜情感老师 2009-05-31
  • 打赏
  • 举报
回复
学习了,虽然没有用过weblogic的服务器,但是还是学到了很多的东西哦。
折腾_苏州 2009-05-31
  • 打赏
  • 举报
回复
没办法解决了?那结贴吧。
mengweilil 2009-04-09
  • 打赏
  • 举报
回复
servlet-reload-check-secs

The <servlet-reload-check-secs> element defines whether a WebLogic Server will check to see if a servlet has been modified, and if it has been modified, reloads it. The -1 value tells the server never to check the servlets, 0 tells the server to always check the servlets, and the default is to check each 1 second.

A value specified in the console will always take precedence over a manually specified value.

所以,没办法。
mengweilil 2009-04-09
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 seu07201213 的回复:]
servlet-reload-check-secs 是weblogic自动检测机制,这个在产品模式下肯定没法。有没有手动的办法去触发 servlet-reload 一下?
[/Quote]
当然没有——人家压根不检查你类是否有变化,怎么手动?

除非你自己写classloader,来装载servlet。不过这肯定和你要提升性能而关掉自动检查相冲突。
折腾_苏州 2009-04-09
  • 打赏
  • 举报
回复
servlet-reload-check-secs 是weblogic自动检测机制,这个在产品模式下肯定没法。有没有手动的办法去触发 servlet-reload 一下?
折腾_苏州 2009-03-31
  • 打赏
  • 举报
回复
盼高手或有经验的人出来说下,是没有办法解决的问题?还是?
fanyuanwaifdl 2009-03-28
  • 打赏
  • 举报
回复
up
mengweilil 2009-03-27
  • 打赏
  • 举报
回复
管理界面有停止、启动应用的选项吧?

折腾_苏州 2009-03-27
  • 打赏
  • 举报
回复
开发模式下,自己会reload热部署。
产品模式下,这个类在重载的时候也只会瞬间影响一部分服务,不用重启整个服务。
mengweilil 2009-03-27
  • 打赏
  • 举报
回复
......

肯定要重启应用的啊,要不怎么reload啊?难道自己改classloader?就算那样,这个类在重载的时候,也无法为客户提供服务啊
折腾_苏州 2009-03-27
  • 打赏
  • 举报
回复
停止和启动这个应用,那不等于还是重启么??
ChDw 2009-03-27
  • 打赏
  • 举报
回复
无论运行在哪里,默认情况下WebLogic都允许控制台的访问啊。你可以通过控制台停止和启动这个应用啊
折腾_苏州 2009-03-27
  • 打赏
  • 举报
回复
没有,运行在solaris下的weblogic
struts.action.extension The URL extension to use to determine if the request is meant for a Struts action 用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。 struts.configuration The org.apache.struts2.config.Configuration implementation class org.apache.struts2.config.Configuration接口名 struts.configuration.files A list of configuration files automatically loaded by Struts struts自动加载的一个配置文件列表 struts.configuration.xml.reload Whether to reload the XML configuration or not 是否加载xml配置(true,false) struts.continuations.package The package containing actions that use Rife continuations 含有actions的完整连续的package名称 struts.custom.i18n.resources Location of additional localization properties files to load 加载附加的国际化属性文件(不包含.properties后缀) struts.custom.properties Location of additional configuration properties files to load 加载附加的配置文件的位置 struts.devMode Whether Struts is in development mode or not 是否为struts开发模式 struts.dispatcher.parametersWorkaround Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic (某些版本的weblogic专用)是否使用一个servlet请求参数工作区(PARAMETERSWORKAROUND) struts.enable.DynamicMethodInvocation Allows one to disable dynamic method invocation from the URL 允许动态方法调用 struts.freemarker.manager.classname The org.apache.struts2.views.freemarker.FreemarkerManager implementation class org.apache.struts2.views.freemarker.FreemarkerManager接口名 struts.i18n.encoding The encoding to use for localization messages 国际化信息内码 struts.i18n.reload Whether the localization messages should automatically be reloaded 是否国际化信息自动加载 struts.locale The default locale for the Struts application 默认的国际化地区信息 struts.mapper.class The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class org.apache.struts2.dispatcher.mapper.ActionMapper接口 struts.multipart.maxSize The maximize size of a multipart request (file upload) multipart请求信息的最大尺寸(文件上传用) struts.multipart.parser The org.apache.struts2.dispatcher.multipart.MultiPartRequest parser implementation for a multipart request (file upload) 专为multipart请求信息使用的org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上传用) struts.multipart.saveDir The directory to use for storing uploaded files 设置存储上传文件的目录夹 struts.objectFactory The com.opensymphony.xwork2.ObjectFactory implementation class com.opensymphony.xwork2.ObjectFactory接口(spring) struts.objectFactory.spring.autoWire Whether Spring should autoWire or not 是否自动绑定Spring struts.objectFactory.spring.useClassCache Whether Spring should use its class cache or not 是否spring应该使用自身的cache struts.objectTypeDeterminer The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class com.opensymphony.xwork2.util.ObjectTypeDeterminer接口 struts.serve.static.browserCache If static content served by the Struts filter should set browser caching header properties or not 是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中 struts.serve.static Whether the Struts filter should serve static content or not 是否struts过滤器应该提供静态内容 struts.tag.altSyntax Whether to use the alterative syntax for the tags or not 是否可以用替代的语法替代tags struts.ui.templateDir The directory containing UI templates UI templates的目录夹 struts.ui.theme The default UI template theme 默认的UI template主题 struts.url.http.port The HTTP port used by Struts URLs 设置http端口 struts.url.https.port The HTTPS port used by Struts URLs 设置https端口 struts.url.includeParams The default includeParams method to generate Struts URLs 在url中产生 默认的includeParams struts.velocity.configfile The Velocity configuration file path velocity配置文件路径 struts.velocity.contexts List of Velocity context names velocity的context列表 struts.velocity.manager.classname org.apache.struts2.views.velocity.VelocityManager implementation class org.apache.struts2.views.velocity.VelocityManager接口名 struts.velocity.toolboxlocation The location of the Velocity toolbox velocity工具盒的位置 struts.xslt.nocache Whether or not XSLT templates should not be cached 是否XSLT模版应该被缓存

67,540

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧