您的位置:首页>平台软件>应用服务器,中间件>

WebLogic的初步研究(2-2)

[ 来源:ChinaZ.com | 更新日期:2007-7-15 20:15:32 | 评论 0 条 | 我要投稿 ]


关于Servlet

字串7

出于安全的目的,在 WebLogic 下运行的 WebLogic 必须在 weblogic.properties 里登记后才能运行,例如上文的提到Servlet http://localhost:7001/helloWorld, 字串1

它在weblogic.properties 里的登记项是

字串3

weblogic.httpd.register.helloWorld=examples.servlets.HelloWorldServlet 字串2

实际上,这个 Servlet 的实际路径是 字串9

/weblogic/myserver/servletclasses/examples/servlets/HelloWorldServlet.class 字串4

对照一下weblogic.properties里的登记项和HelloWorldServlet.class文件的路径,应该不难找出其登记Servlet的规律吧。 字串1

在weblogic.properties里有一下几个Servlet的登记项: 字串1

weblogic.httpd.register.AdminEvents=admin.AdminEvents 字串1

weblogic.httpd.register.AdminClients=admin.AdminClients weblogic.httpd.register.AdminConnections=admin.AdminConnections weblogic.httpd.register.AdminJDBC=admin.AdminJDBC

字串4

weblogic.httpd.register.AdminLicense=admin.AdminLicense

字串2

weblogic.httpd.register.AdminMain=admin.AdminMain

字串3

weblogic.httpd.register.AdminProps=admin.AdminProps

字串9

weblogic.httpd.register.AdminRealm=admin.AdminRealm 字串8

weblogic.httpd.register.AdminThreads=admin.AdminThreads weblogic.httpd.register.AdminVersion=admin.AdminVersion 字串2

这就是管理员管理 WebLogic 用的Servlet,通过URL访问http://localhost:7001/AdminMain,在弹出的身份验证对话框了输入 system 和在 weblogic.password.system= 设置的密码,就可以进入 WebLogic 的Web管理界面进行管理。

字串8


Tags:
责任编辑:
您的评论
用户名: 新注册) 密码: 匿名评论 [所有评论]

·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为