File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes need help to create scheduler in websphere using JACL scripts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "need help to create scheduler in websphere using JACL scripts" Watch "need help to create scheduler in websphere using JACL scripts" New topic
Author

need help to create scheduler in websphere using JACL scripts

kalam king
Greenhorn

Joined: Apr 19, 2010
Posts: 2
I am able to run a script a created, the script does not give any errors but does not give any results as well.

i am trying to create a scheduler in websphere application server version 7.0.0.9

Below is the script. Please let me know if you need more information. Kindly review and let me know if i am missing something or i have done it wrong. i have tried three different ways with no sucess. i am adding the 3 scripts for review. Thanks for your time.
---------------------
script1
proc schedulerConfig {} {

global AdminConfig
set cellid [$AdminConfig getid /Cell:/]
set cellName [$AdminConfig showAttribute $cellid name]
set nodeId [$AdminConfig getid /Cell:$cellName/Node:/]
set nodeName [$AdminConfig showAttribute $nodeId name]
set schedprov [$AdminConfig getid /Cell:$cellName/Node:$nodeName/SchedulerProvider:SchedulerProvider]
set name EJBTimerDataSource
set jndi sched/EJBTimerDataSource
set dsjndi jdbc/CTP
set dsalias CTP_USER
set tp EJBTIMER_
set pi 1800
set ar false
set wmijndi wm/default
set spattrs [subst { \ {name $name} \ {jndiName $jndi} \ {scope $scope} \ {datasourceJNDIName $dsjndi} \ {datasourceAlias $dsalias} \ {pollInterval $pi} \ {tablePrefix $tp} \ {useAdminRoles $ar} \ {workManagerInfoJNDIName $wmijndi}}]
$AdminConfig create SchedulerConfiguration $schedprov $spattrs
$AdminConfig save
}

-------------
script 2

proc schedulerconfig {} {

global AdminConfig
set nodeId [$AdminConfig getid /Node:/]
set nodeName [$AdminConfig showAttribute $nodeId name]
set scope [$AdminConfig getid /Node:$nodeName/]
set s4 [$AdminConfig list SchedulerProvider]
$AdminConfig create SchedulerConfiguration $s4 $scope {{name

"EJBTimerDataSource"} {jndiName "jdbc/EJBTimerDataSource"}

{datasourceJNDIName "jdbc/CTP"} {datasourceAlias "CTP_USER"}

{tablePrefix "EJBTIMER_"} {pollInterval "300"}

{workManagerInfoJNDIName "wm/default"} {useAdminRoles "false"}}
$AdminConfig save
}
---------
script 3

proc schedulerConfig {} {

global AdminConfig

set nodeId [$AdminConfig getid /Node:/]
set nodeName [$AdminConfig showAttribute $nodeId name]
set scope [$AdminConfig getid /Node:$nodeName/]
set schedprov [$AdminConfig list SchedulerProvider]
set name [list name EJBTimerDataSource]
set jndi [list jndiName jdbc/EJBTimerDataSource]
set dsjndi [list datasourceJNDIName jdbc/CTP]
set dsalias [list datasourceAlias CTP_USER]
set tp [list tablePrefix EJBTIMER_]
set pi [list pollInterval 300]
set ar [list pollInterval 300]
set wmijndi [list workManagerInfoJNDIName wm/default]
set spattrs [list $name $jndi $dsjndi $dsalias $tp $pi $ar $wmijndi $scope]
$AdminConfig create $schedprov $spattrs
$AdminConfig save
}

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help to create scheduler in websphere using JACL scripts
 
Similar Threads
Deployment of ear without using admin console
HOWTO: Run WSAdmin within the Eclipse Ide as an external tool.
need jacl script help for websphere to create custom property for datasource
Help Needed with Jacl script.
Starting an application on server2 using wsadmin/jacl