- EAR project
- WEB project
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
InitialContext = new InitialContext(env);
Scheduler scheduler = (Scheduler)ic.lookup("scheuler_JNDI");
BeanTaskInfo taskInfo = (BeanTaskInfo) scheduler.createTaskInfo(BeanTaskInfo.class);
Object o = ic.lookup("scheduler_EJB_jndi");
TaskHandlerHome home = (TaskHandlerHome) PortableRemoteObject.narrow(o, com.ibm.websphere.scheduler.TaskHandlerHome.class);
taskInfo.setTaskHandler(home);
taskInfo.setStartTime(startDate);
taskInfo.setNumberOfRepeats(100);
taskInfo.setRepeatInterval("2seconds");
taskInfo.setName("SchedulerEJB");
TaskStatus ts = scheduler.create(taskInfo);
- EJB
POM - need to generate remote stub, add to the web module
3.1 standard v2.1 EJB extends TaskHandler Interface.
public class SchedulerEJB implements TaskHandler, SessionBean {}
3.2 ejb-jar.xml defines as follows
<session id="SchedulerEJB">
<ejb-name>SchedulerEJB</ejb-name>
<home>com.ibm.websphere.scheduler.TaskHandlerHome</home>
<remote>com.ibm.websphere.scheduler.TaskHandler</remote>
<ejb-class>au.gov.immi.SchedulerEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
- websphere admin console
- 1. setup scheduler and its database
http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m5/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fadmin%2Ft_configuring_websphere_application_server_for_derby_manually.html
Local test urL
localhost:9080/scheduler_web/scheduler
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wsps.602.javadoc.doc/doc/com/ibm/websphere/scheduler/TaskInfo.html
http://www.coderanch.com/t/75326/Websphere/WSAD-Schedular-UserCalender
http://www.coderanch.com/t/581616/EJB-JEE/java/Calling-EJB-Bean-WebSphere-application
https://github.com/aviramsegal/articles/blob/master/WebSphereScheduler/WebSphereScheduler.md
相关推荐
webSphere指南webSphere指南webSphere指南webSphere指南webSphere指南
websphere设计
WebSphere
was相关资料: Websphere安装步骤 websphere安装后配置说明 Websphere实用手册 WebSphere+v6.1配置文档
websphere commerce的使用即websphere commerce图解.在网上扒了半天才找到的稀品啊!IBM创建商品店铺(websphere commerce).pdf 一些其他的相关资料: ...
WebSphere Application Server v7.1互补产品 WAS v7.0 的价值在IBM z/OS WebSphere Application Server Version 7.0 特色 WebSphere Application Server Version V7.0技术简介 WebSphere Application Server v...
第一部分 Websphere MQ原理和体系结构 11 第一章Websphere MQ原理 11 目标 11 1.1中间件 11 1.1.1中间件的优点 11 1.1.2中间件的分类 12 1.2三种通信技术的比较 13 1.3 WebSphere MQ的原理 15 1.4 WebSphere MQ的...
WebSphere在Myeclipse中的整合,Myeclipse下增加WebSphere的支持
linux 下websphere安装linux 下websphere安装linux 下websphere安装linux 下websphere安装linux 下websphere安装
websphere7.0websphere7.0
WebSphere介绍: WebSphere Studio,一个Web站点开发和设计工具包,包括项目管理,Java Servlet代码生成器,HTML写作工具,各种Script的编制工具,以及JAVA代码(Beans和Servlets)的开发工具。 WebSphere应用...
WebSphere Application Server v7.1互补产品 WAS v7.0 的价值在IBM z/OS WebSphere Application Server Version 7.0 特色 WebSphere Application Server Version V7.0技术简介 WebSphere Application Server v...
Websphere6.0安装手册Websphere6.0安装手册Websphere6.0安装手册Websphere6.0安装手册Websphere6.0安装手册Websphere6.0安装手册
websphere 教程websphere 教程websphere 教程websphere 教程websphere 教程websphere 教程
全书共分为3部分共14章,第一部分 WebSphere MQ原理和体系结构,分为两章;第二部分 WebSphere MQ系统管理,分为六章,分别介绍安装、配置、管理、控制命令和问题确定;第三部分 WebSphere MQ应用开发,由五章组成,...
本人自学IBM的WebSphereMQ自学笔记,内有MQ安装文档,建MQ的例子等。 1、 MQ6.0安装 2 1.1 启动MQ v6.0 安装程序 2 1.2 软件需求检查 2 1.3 WebSphere Eclipse Platform V3.0.1软件安装 2 1.4 网络配置检查 3 1.5 ...
Firefox,安装webSphere必须,Linux版本
websphere安装配置图解详细教程 目 录 一、安装websphere软件 3 二、安装websphere补丁 15 三、配置websphere应用服务器 21 一、安装websphere软件 1、安装webshpere WAS6 的安装过程,使用缺省设置即可。需要注意...
websphere在aix系统安装,简要说明安装手册。
Websphere_MQ入门Websphere_MQ入门Websphere_MQ入门Websphere_MQ入门