Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

need help to create scheduler in websphere using JACL scripts

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

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.
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

WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic