JMS 代码示例
The previous post described how to setup a Queue in Weblogic Server. This post shows the code necessary to run a Simple Messaging example using a servlet and Message Driven Bean. You can always implement an message listener instead of using a Message Driven Bean, but using MDBs is much cleaner and easier. Follow these steps to run the example
配置Weblogic 9.2 JMS (Configuring Weblogic JMS)
This is a basic example of how to implement Messaging in Java using JMS and Message driven beans. The example is implemented using Weblogic JMS implementation. This part describes how to configure a queue on weblogic, the next part will describe the programming involved to run the example.Follow these steps to configure a queue in Weblogic:
Jmeter性能测试的脚本录制
Jmeter中的脚本录制。
(1)选中“测试计划”单击鼠标右键,在弹出菜单中选择添加->线程组;
(2)接下来选中“工作台”单击鼠标右键,在弹出菜单中选择添加->非测试元件->HTTP 代理服务器;
(3)在“HTTP 代理服务器”窗口中“目标控制器”下拉框选择“测试计划”> “线程组”(表示脚本生成在这个线程组下),分组下拉框选择“每个组放入一个新的控制器”(表示把每组脚本放到一个新的组中,避免生成的脚本杂乱且无法组织);
(4)单击窗口最下方的开始;
(5)打开浏览器,设置代理服务器的设置为localhot,端口号为8080(在“HTTP Proxy Server”窗口中设置了使用8080端口进行侦听);
(6)在地址中键入要录制页面的URL对页面进行操作,Jmeter就会自动把所进行的操作录制成为脚本了,可以看到“线程组”节点下面多了许多的子节点就是录制生成的脚本;
(7)操作完毕后在Jmeter中单击Stop先停止录制,然后把浏览器的代理设置改为原来的设置即可。
涉及到登录的情形参考:使用Jmeter进行需登录的Web页面性能压力测试
我收藏的链接(19)
- Settingup an FTP Server on Ubuntu with ProFTPD -- Ubuntu Geek
- Setting Up a Telnet Server in Ubuntu -- Ubuntu Geek
- IBM WebSphere 开发者技术期刊: 使用 J2EE Connector Architecture 进行 WebSphere Application Server 和 CICS 的事务集成
- 使用 JFreeChart来创建基于web的图表
- IBM WebSphere Developer Technical Journal: Transactional high availability and deployment considerations in WebSphere Application Server V6
- 在tapestry的html里的head标签里增加meta等html内容
- Qref/Hardy - Ubuntu中文
- 零命令玩转Ubuntu 8.04 之 配置篇 (系统微调) | iLoveMac.cn
- Does a similar app also exist for Macs or Linux? | TortoiseSVN
- Ubuntu中文 论坛 :: 阅读主题 - 中文输入法
- ubuntu 8.04中文环境解决方法 - 开发者在线 - www.builder.com.cn
- 来个Ubuntu 8.04的更新源
Ubuntu中文环境和中文输入法安装
1、增加Ubuntu的更新源
2、使Ubuntu操作系统环境为中文环境
语句如下
sudo apt-get install scim scim-pinyin scim-tables-zh im-switch scim-qtimm scim-bridge scim-bridge-client-gtk scim-bridge-client-qt scim-bridge-agent -y
然后再执行
sudo im-switch -s scim
3、安装中文输入法
在系统菜单的系统——系统管理——语言支持里面找“汉语”,刚装好系统的时候是没有“汉语”的。选中汉语,这时候系统才会下载中文语言包并自动安装
还有一种命令行方法安装中文输入法:
sudo apt-get update
#装智能拼音
sudo apt-get install scim-pinyin
#装五笔
sudo apt-get install scim-table-zh
#如果scim 不会自动启动
sudo apt-get install im-switc
把eclipse的workspace编码设置可选GBK,解决默认UTF-8的问题
在工程的属性中有设置项,可以设置当前工程的编码,设置成GBK就可以了,默认的没有GBK可选,可以直接输入GBK编码。
Java 应用中汉字显示成方块(方格)乱码的几种解决方法
和用UTF-8开发面向国际化Java/J2EE应用并解决中文问题不同,下面的介绍Java 应用中汉字显示成方块乱码的几种解决方法:
- 增加启动参数:-Dswing.useSystemFontSettings=false
- 增加启动参数:-Djava.awt.headless=true
- Ubuntu下的JAVA中文乱码
