WebSphere Class Loaders and Shared Library, Part 3 (Class loader in WebSphre Portal + Shared Library )

following part 2...

Class loader in WebSphere Portal

WebSphere Portal Express classloading follows the WebSphere Application Server hierarchy for classpaths and search orders. A particular classloader can reference other classes as long as the other classes can be loaded by the same classloader or any of its ancestors, but not its children. The graphic illustrates where WebSphere Portal Express and portlet applications fit into the classloading hierarchy.

As illustrated, WebSphere Portal Express is an application extension under WebSphere Application Server. Consequently, the WebSphere Portal Express core classes are in the classpath portal_server_root/shared/app. If an installed portlet application includes a classloader, the portlet application classloader is an application classloader under WebSphere Portal Express.

Shared Library

Shared libraries are files used by multiple applications. Shared libraries are files used by multiple applications.

Shared Library Level

You can define a shared library at the cell, node, or server level.

Shared Library Class Loader

·        When shared libraries are associated with an server

A separate class loader is used. This class loader is the parent of the application class loader, and the WebSphere Application Server extensions class loader is its parent

·        When shared libraries are associated with an application

Shared libraries are loaded by the application class loader

Associate Shared Library

·        Using the WAS admin console to associate libraries with application or server

·        By declaring the dependent library .jar file in the MANIFEST.MF file of the application.


To be continued...

Resources:

Shared Libraries: WAS6 InfoCenter (Setting up the application serving environment->Administrating application servers-> Managing shared libraries)

Class Loaders: WAS6 InfoCenter (Developing and deploying applications->Class loading)

Classloading in WebSphere Portal: WebSphere Portal InfoCenter (Developing portlets->Portlet development basics->Creating a simple portlet)

Best Practice for Using Common Application Files

Learning more about the Classloader

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值