WebSphere Application Server V6 备忘录

com.stub.StubApp.apk 立即下载

1. WebSphere with Optimizeit

 

it is for WebSphere 4.0,  while  it’s almost same as websphere6

 

Using Optimizeit with WebSphere 4.0 Advanced Edition

This tutorial explains how to integrate Optimizeit with IBM WebSphere 4.0 Advanced Edition. These instructions are for both Windows and Unix machines. Once you have integrated Optimizeit, you can attach to any Optimizeit tool without further integration.

Note: In this document <OptIt_Dir> is the directory where Optimizeit has been installed (for example on Windows, C:/Optimizeit/OptimizeitSuite), and <WebSphere_Dir> is the directory where the WebSphere application server has been installed (for example on Unix, /opt/sfw/websphere).

Note on using JDK 1.3 on Solaris machines with WebSphere 4.0: On Solaris machines, IBM WebSphere 4.0 is packaged with and uses by default JDK 1.3. But JDK 1.3 does not support the profiling interface (JVMPI) and so cannot be used with Optimizeit. In order to use Optimizeit with your WebSphere application server, you need JDK 1.3.1 or above. If you do not have JDK 1.3.1 installed, download the software from the Sun java website.

 

Configuring WebSphere with Optimizeit

The following instructions explain how to configure WebSphere to work with Optimizeit.

  1. On Windows machines only, copy the <OptIt_Dir>/lib/oii.dll file to the <WebSphere_Dir>/bin directory.
  2. On Unix machines only, copy the <OptIt_Dir>/lib/liboii.so and <OptIt_Dir>/lib/libpri.so files to the <WebSphere_Dir>/bin directory.
  3. Start the WebSphere Admin Service and then the WebSphere Administrative Console.
  4. In the Administrative Console, select the node of the Application Server you want to profile with.
  5. Select the server that you want to use (for example, Default Server). You will notice several tabs on the panel to the right.
  6. Select the JVM Settings tab, and add <OptIt_Dir>/lib/optit.jar in the Classpaths field.
  1. Scroll down and click Advanced JVM Settings to open the Advanced JVM Settings dialog box.
  2. In the Command Line Arguments field, type -Xrunoii:filter=<OptIt_Dir>/filters/Websphere.oif
  3. Check Disable JIT and type <OptIt_Dir>/lib/oibcp.jar in the Boot Classpath (Prepend) field.
  4. Click OK to close the Advanced JVM Settings dialog box.
  1. Click Apply to update the changes to WebSphere.

 

Starting WebSphere with Optimizeit

  1. For Windows machines only: Using the Optimizeit Audit System selector from the Windows tray, select which of the Optimizeit tools (Profiler, Thread Debugger or Code Coverage) you currently wish to use with WebSphere.

 

Note: If you have previously installed Optimizeit products, you must quit the Audit System Selector supplied with those products, and start the Optimizeit Audit System Selector supplied with this tool.

  1. For Unix machines only: Using the Optimizeit Audit System selector, select which of the Optimizeit tools you currently wish to use with WebSphere. The Optimizeit Audit System selector is a command located under <OptIt_Dir>/oiselector. It allows you to choose which Audit system should be run and which options should be used. In order to quickly configure, enter:
    <OptIt_Dir>/ oiselector -config
    This command starts an interactive configuration. More information is available when you type:
    <OptIt_Dir>/ oiselector -help
    Important: The configuration specified through the Audit System selector is stored in a file located under the HOME directory of the current user. For that reason, the oiselector command should be run as the same user as the one used to run the application server.
  2. Once you have selected the Audit System to be used, restart your Application Server.

 

Attaching from Optimizeit

Once WebSphere is running with the Optimizeit Audit System, you can launch Optimizeit and attach to the virtual machine.

  1. Ensure your application server is running, and that the application you want to profile is deployed and running.
  2. On Windows machines only, right-click the Audit System Selector icon on the taskbar, and choose Open the Audit System Selector.

 

Select the tab for your chosen tool, and click Start.

  1. On Unix machines, start Optimizeit.
  2. Optimizeit opens the Edit Settings dialog box. Click OK.
  3. Choose Program|Attach to open the Attach dialog box.
  4. Verify the host name and port number, and click Attach.

The default values for host name (localhost) and port number (1470 for Profiler, 1471 for Thread Debugger, and 1472 for Code Coverage) will work in most instances.

  1. When you are done monitoring activity with the application, detach Optimizeit from the application server (Program|Detach).

The application server is not affected by attaching and detaching Optimizeit.

 

 

2. WebSphere with DataSource

 

 Connection String
Oracle thinjdbc:oracle:thin:@orcl:1521:zlu
Oracle oci
  • jdbc:oracle:oci:@orcl:1521:zlu(for 10g)
  • jdbc:oracle:oci:@orcl(for 9i, you should configure a local service to point to the remote service)
Sybasejdbc:sybase:tds:localhost:5000/testdb
DB2 (Legacy jdbc type 2 for XA)

1. Database configure

    Because you want to use JDB2 type2 driver, so you must have a DB2 client on the same machine with the websphere.

    If you want to connect to a remote DB2 database, you need configure a local database which reference to the remote database using DB2 client tool.

2. Start WebSphere

Because you used the JDBC2 driver, you need to run a script named db2profile to configure some environment parameter before you start the WebSphere.

 Normally you can find that script at the {$db2-user-home}/sqllib folder.  After you have run that script, you can start the WebSphere

3. Configure Database

       When you create JDBC providers, you should choose DB2 Legacy CLI-based Type 2JDBC Driver.    

   Ok, that all.

DB2 (Universal jdbc type 2 for XA)
  1. DB2 Driver version can't be lower than 8.1.6
  2. set DB2_HOME/bin as lib path

 

 

3. WebSphere with JVM Arguments

 

 Configuration
Speak English

1, “Servers” -> “Application Server” ->"server_name"->“Server Infrastructure”-> “Java and Process Management”->“Process Definition”-> “Java Virtual Machine”->   Add value “-Duser.language=en” to property “Generic JVM arguments”.->restart WebSphere.

2, Change IE to show English UI of WebSphere, open IE, and go to “Tools” -> “Internet Options” -> “General”-> “Language”.-> “Add”.a new item “en-us”, and move it on the top of the list.

GC log-Xloggc:$SomeFolder/logs/callee.gc.txt

 

4. WebSphere with Default JMS Provider, JCA, and SIB

 

Default JMS Provider: WebSphere Application Server V6 supplies a preconfigured J2EE Connector Architecture resource adapter implementation that can be used to communicate with a service integration bus. This resource adapter is installed as a fully-integrated component of WebSphere Application Server V6, at all levels of the WebSphere cell, and needs no separate installation steps. The administered objects for this resource adapter also implement the corresponding interfaces of version 1.1 of the JMS specification. This enables them to the be used by JMS clients for both the point-to-point and Publish/Subscribe messaging models.

Default JMS Provider Configuration UI: A user friendly configuration tool to help you avoid directly configuring the JMS JCA resource adapter for JMS; yeah, you can configure JMS JCA resource adapter directly for your application

SIB: A service integration bus, or bus, within WebSphere Application Server V6 is simply an architectural concept. It gives an administrator the ability to group a collection of resources together that provide the messaging capabilities of the bus. At runtime, the bus presents these cooperating messaging resources to applications as a single entity, hiding from those applications the details of how the bus is configured and where on the bus the different resources are located. yeah, SIB holds physical resource located for JMS and some other Service.

Provider is interface, SIB is implementaton

Default JMS Provider Configuration UIWebSphere MQ JMS Provider

   ↓                                                         ↓

Default JMS Resource Adaptor,i.e, Default Provider

   ↓                                                         ↓

Destination <- SIB ->(foreign bus)->WebSphere MQ -> Destination

 

 

5. WebSphere with MQSeries

 

There are two way at least to configure applications running in WebShere Application Server communicating with MQSeries:
  1. Using WebSphere Default JMS Provider with foreign bus connected to MQSeries, which illustrated above.
  2. Using WebSphere MQ JMS Provider

Unlike the default messaging JMS provider, the WebSphere MQ JMS provider is not a J2EE Connector Architecture version 1.5 compliant resource adapter. It simply provides an implementation of version 1.1 of the JMS API, enabling JMS clients to communicate directly with WebSphere MQ.

 

6. WebSphere with JNDI

 

  • Compound name: cell/nodes/node1/servers/server1/ejb/webbank/Account
  • Corbaname: corbaname::myhost1:9812/NameServiceServerRoot#ejb/webbank/Account
Using an IIOP URL
  • java.naming.provider.url=corbaloc:iiop:myhost.mycompany.com:2809
  • java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
Using a CORBA object URL from a non-WebSphere JNDI, To access a WebSphere name server from a non-WebSphere environment, such that the WebSphere initial context factory is not used, a corbaloc URL must be used that has an object key of NameServiceServerRoot to identify the server root context.
  • env.put(Context.INITIAL_CONTEXT_FACTORY, "com.somecompany.naming.TheirInitialContextFactory");
  • env.put(Context.PROVIDER_URL, "corbaname:iiop:myhost.mycompany.com:2809/NameServiceServerRoot");

 

7. Misc

 

 Configuration
Run Scriptfor %%v in ("*.jacl") do wsadmin -host 192.168.0.3 -port 8880 -f %%v
Provider Endpoint in Non -Bootstrap ServerUse the provider endpoints property to configure the bootstrap servers to
which a connection factory can connect. The provider endpoints property of the connection factory allows an administrator. to specify a comma-separated list of suitable bootstrap servers for the connection factory. Each bootstrap server in the list is specified as a triplet of the form: hostname : port : transport chain, e.g."boothost1:7278:BootstrapBasicMessaging"
Console Session

Servers -> Application Server -> server name -> Web Container -> Session Management: By default the value is 30. You can change it to -1(never time out) or 10000.

Remove Timer in WebSphereIf the timer in WAS has exception, it always appear even you reinstall your application or restart WAS. Steps to remove it:
  1. Stop WAS
  2. Run “$WAS_HOME/cloudscape/bin/embedded/cview.bat”
  3. Open the database in“$WAS_HOME/profiles/default/databases/EJBTimers/server1/EJBTimerDB”
  4. delete data in table EJBTIMER_TASK
  5. Restart WAS
Don't start application with WebSphere

By default, an application will start when the server starts. However, you may not want all the applications to start immediately, because the applications you no longer use consume resources, or you may not need to run them. The only way to prevent this is to disable the application from running on the server.

a. Select Applications -> Enterprise Applications

b. Click the application to open the configuration.

c. Select Target Mappings in the Additional Properties table.

d. Select the server for which you want to disable the application.

e. Deselect the Enable option and click OK.

f. Save the configuration.

 
Environment VariableIf you are on windows platform, after you installed some software, such as Oracle or DB2, you should restart your machine to make the change of some environment variables such as ${PATH} visible to WAS, then WAS can use the native libraries you just installed.

   

 

Sagittarius:Sagittarius 在线游戏服务的开源 Sagittarius 是一款使用构建的强大且免费的在线游戏服务。 这意味着您可以立即获得 Google 产品的所有可扩展性和可靠性。 更重要的是,Sagittarius 旨在部署到您自己的 App Engine 帐户,让您可以完全控制游戏的后端。 访问了解更多信息! 立即下载

相关推荐

com.stub.StubApp.apk.1.1

com.stub.StubApp.apk.1.1

SSM之Spring学习记录

IoC 中文名称:控制反转 英文名称:(Inversion of Control) IoC 完成的事情:原先由程序员主动通过 new 实例化对象事情,转交给 Spring 负责. 控制反转中控制指的是:控制类的对象. 控制反转中反转指的是转交给 Spring 负责. IoC 最大的作用:解耦. 程序员不需要管理对象.解除了对象管理和程序员之间的耦合. 环境搭建 导入jar包,四个核心包一个日志包(commons-logging) 在 src 下新建 applicationContext.xml .

Sagittarius_FV的博客 2066

Sagittarius1310.github.io:该资料库包含我的在线简历和一些示范培训项目

射手座1310.github.io 该存储库包含我的在线简历和演示培训项目。 示范 简历: : 待办事项列表: : 井字游戏: :

Android studio使用中问题集锦

1. Installation failed with message INSTALL_CANCELED_BY_USER.我在使用红米 note进行安卓开发,运行项目时出现的提示。 我又换用了海马玩安卓模拟器来运行这个项目,成功运行。 重新换了红米驱动,但依然出现这个提示,目前尚未解决,希望知道的大神留言提示,谢过。2. mergeDebugResources FAILED. 其实这个错误就是

sagittarius_yx的专栏 1998

com.stub.StubApp.apk.1

com.stub.StubApp.apk.1

JM新版本1.6.3-1.zip

JM新版本1.6.3-1.zip

正确使用Android性能分析工具——TraceView

原文出处: bxbxbai 的博客(@白瓦力)   欢迎分享原创到伯乐头条 前面唠叨 最近公司app中有些列表在滑动的时候会有卡顿现象,我就开始着手解决这些问题,解决问题之前首先要分析列表滑动的性能瓶颈在什么地方。因为之前不会正确使用TraceView这个工具,主要是看不懂TraceView界面下方数据指标的值代表什么意思…以前我用StopWatch类来分析性能,现在觉得弱爆了…不过有

lsyAndroid的专栏--解决实际开发中自己遇到的问题 1574

图像质量评估(5) -- 畸变(Distortion)

当图像中原本应该是直线的地方看起来发生了不自然的变形或扭曲时,我们称为图像畸变。有三种类型的镜头畸变:桶形畸变(后文使用英文barrel),枕形畸变(后文使用pincushion)和胡子畸变(后文使用英文wavef或mustache,这种畸变里包含了桶形畸变和枕形畸变)。有一个重要的点需要注意,根据透镜的类型以及透镜是否能够从相机中移除等条件不同,畸变会有不同的表现。 总的来说,旋转对称光学系统功能上会产生和物体几何相似的图形。但也有少数特殊的系统是例外,例如鱼眼镜头,这种镜头几何是故意设计为

vivo01的专栏 2万+

Android Studio 开发工具下载

网站地址:http://tools.android-studio.org/index.php Android Developer Tools ...

纸上得来终觉浅,绝知此事要躬行 1471

手把手实战:RK3588上YOLOv8模型从训练到部署全流程解析

本文详细解析了在RK3588开发板上部署YOLOv8目标检测模型的全流程。从模型训练、正确导出适配的ONNX格式,到使用RKNN-Toolkit2进行模型转换与量化,最后在板卡上完成部署与性能测试。文章提供了完整的代码示例和关键避坑指南,帮助开发者高效实现嵌入式AI应用落地。

weixin_28224217的博客 405

[南大ICS-PA2]PA2 - 简单复杂的机器:冯诺依曼计算机系统

mips32和riscv32的指令长度只有32位, 因此它们不能像x86那样, 把C代码中的32位常数直接编码到一条指令中. 思考一下, mips32和riscv32应该如何解决这个问题?加载立即数到寄存器的高20位,然后便可以是哟给你标准的立即指令来创建32位常量。在程序分析领域中,静态指令是指程序代码中的指令,动态指令是指程序运行过程中的指令,例如对于一下指令序列。位域,在小端机器上,先定义的在每个字节的低位,后定义的在每个字节的高位。,这是处理非法指令的宏,其定义在。指令,而下一条动态指令则是。

qq_42474104的博客 928

PAT-1073. Scientific Notation(Java StringBuild)

其实这篇也是PAT的题目,不过主要是用来学习Java字符串的操作的。 今天看了Java编程思想字符串的章节,原来java里面String对象是永远不会变的,因为没有任何方法是修改字符串里面的数据的。 如果要操作字符串对象例如: String str = "de"; String s = "abc" + str + "fgh" + "00"; 理论上讲,第二个操作在执行过程中,每执行一次加

very_caiing 1583

激光光束质量评估与光斑尺寸计算:从理论到MATLAB实践

本文详细解析激光光束质量评估与光斑尺寸计算的理论基础及MATLAB实践方法,重点介绍M²因子的测量与应用。通过高斯光束模型、CCD成像法和MATLAB算法实现,帮助读者掌握从理论到实践的完整流程,提升激光系统调试与评估能力。

weixin_29083373的博客 448

SpringBoot项目在使用Maven打包war中遇到的问题

If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false

阿杜的博客 2803

微信服务号配置总是提示“参数错误”?我就是这样一步步查出问题的

前两天,我遇到了一个很诡异的问题:在微信服务号后台配置服务器地址时,总是提示“参数错误,请重新填写”。

代码简单说 Vue、JAVA、PHP、Node.js 熟练运用,接口、架构、性能全搞定。 1277

机器人多学科仿真软件:Webots_(19).Webots的插件与扩展开发

通过上述步骤,您可以开发和使用Webots的插件、扩展和接口,以增强其功能和灵活性。

kkchenjj的博客 924

阿里热修复SophixStubApplication中java.lang.ClassNotFoundException引起的闪退

 关于怎么集成Sophix,官方文档写的很清楚,这边就不班门弄斧了。 此次记录下关于更新完毕后打开应用崩溃的问题: 07-18 18:14:29.941 12173-12173/? E/Sophix.PatchManager:  callRealAppAttach     java.lang.ClassNotFoundException         at com.taobao.sophi...

wyman的博客 2523

机器人全局路线规划导读

认知有限,望大家多多包涵,有什么问题也希望能够与大家多交流,共同成长!本文先对全局路线规划导读做个简单的介绍,具体内容后续再更,其他模块可以参考去我其他文章提示:以下是本篇文章正文内容。

qq_35635374的博客 1504

android加固 app插件化,[求助]app被加固了,该怎么用xposed模块hook?

楼上说的不错,不过,有时候有些App只是ClassLoader被壳换了,这个时候,选对ClassLoader就可以了。比如这样:public EncryptHook(ClassLoader cl) {super();XposedBridge.log("Now hooking........");try {clzStubApp = (Class>) XposedHelpers.findCla...

weixin_31869569的博客 690

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

java.lang.StackOverflowError: null at com.fasterxml.jackson.databind.type.TypeFactory._fromAny(Type

遇到一个错误,找了好久 10:04:12.716 [http-nio-8080-exec-10] ERROR o.s.boot.web.support.ErrorPageFilter - Cannot forward to error page for request [/urc/addFunc] as the response has already been committed. As a result, the response may have the wrong status code. If

zhaoyan00123的博客 1251

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

Tomcat踩坑 请求报错基于springboot

2019-07-04 17:08:36 [ERROR] Cannot forward to error page for request [/xxxx/xxxx] as the response has already been committed. As a result, the response may have the wrong status code. If your applicat...

Daibhid专栏 1781

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

org.apache.catalina.core.ApplicationContext.log ssi: Can‘t find file: /index.htmlERROR ErrorPageFil

本文介绍了在tomcat里遇到的 org.apache.catalina.core.ApplicationContext.log ssi: Can't find file: /index.html ERROR ErrorPageFilter Cannot forward to error page for request [/] as the response has already been committed. 问题的处理思路以及解决办法

yeyuningzi的博客 1584
上一篇: DNN4 (DotNetNuke) 备忘录
下一篇: Sun JDK 不兼容 IBM JDK 备忘录
platformlib
博客等级 码龄22年 1粉丝 27原创
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值