Questions tagged [jacl]

Implementation of the Tcl interpreter written in Java (Default scripting language expected by WAS administration)

Jacl

Jacl is an alternate implementation of TCL, and is written entirely in Java code.

The wsadmin tool uses Jacl V1.3.1.

Basic syntax: The basic syntax for a Jacl command is the following:

Command arg1 arg2 arg3 ...

The command is either the name of a built-in command or a Jacl procedure. For example:

puts stdout {Hello, world!} 
=> Hello, world!

In this example, the command is puts which takes two arguments, an I/O stream identifier and a string. The puts command writes the string to the I/O stream along with a trailing new line character. The arguments are interpreted by the command. In the example, stdout is used to identify the standard output stream. The use of stdout as a name is a convention employed by the puts command and the other I/O commands. stderr identifies the standard error output, and stdin identifies the standard input.

IBM Syntax Documentation

38 questions
10
votes
4 answers

Is there a simpler way to deploy to WebSphere?

I have seen this question about deploying to WebSphere using the WAS ant tasks. Is there a simpler way to do this? In the past I have deployed to Tomcat by dropping a war file into a directory. I was hoping there would be a similar mechanism for…
Michael Sharek
  • 5,043
  • 2
  • 30
  • 33
8
votes
2 answers

Advantages of using jython vs. jacl in wsadmin scripting (WebSphere Application Server 7+)

Facing the programming for the wsadmin scripting client I see that you can use both jacl and jython. I've the same level of confidence with both two languages. I'm wondering if, in the specific of wsadmin programming , there are advantages of using…
Franco Rondini
  • 10,841
  • 8
  • 51
  • 77
4
votes
3 answers

Setting Maven for scripting languages?

Maven is for building and managing any Java-based project. But what happens if a project is in a scripting language? All maven can do now with TCL is copy the files around and put them in the right place in the target directory. My problems are as…
FILIaS
  • 495
  • 4
  • 13
  • 26
3
votes
2 answers

Active threads in WebSphere 8.5

I am struggling to list active threads from a thread pool WebContainter in WebSphere Application Server 8.5.5. Can someone help me out? I am a beginner on WebSphere. wsadmin.sh -lang jython -c "print AdminControl.queryNames…
shaa0601
  • 111
  • 1
  • 8
3
votes
2 answers

NameSpaceBinding and wsadmin

I am trying to create a StringNameSpaceBinding using the wsadmin tool of Websphere 6.1 Here are the steps i take set cell [$AdminConfig getid /Cell:cell/] $AdminConfig create StringNameSpaceBinding $cell { {name bindname} {nameInNameSpace…
Damien
  • 4,081
  • 12
  • 75
  • 126
2
votes
0 answers

can not read resource tcl/lang/library/init.tcl

I am using the tcljava.jar and jacl.jar for integration with tcl . When i am running my program using main class, then it is running fine. But when i am running my code on server, it is giving the exception. This is the code i am running, private…
2
votes
2 answers

Opening a TCL gui within Java code

I have a TCL file which uses Tcl's BWidget package that I've been using as a GUI for my program. I now want to be able to load up this GUI from a separate Java program. I've looked into Jacl and Swank, but they don't seem to do exactly what I…
Say.My.Name.
  • 511
  • 5
  • 19
2
votes
1 answer

Misleading error message after unhandled exception in wsadmin script

I'm developing an automation framework and I've experienced strange behavior of wsadmin tool. The problem is reproducible in WAS 6.1, 7.0 and 8.0 (I haven't tried with was 8.5). I'm wondering if this is a bug in wsadmin (quite strange that nobody…
Marcin Płonka
  • 2,840
  • 1
  • 17
  • 17
1
vote
1 answer

Jython or JACL for CORBA naming service groups mapping

I'm using IBM WebSphere 7.0. I want to map CORBA naming service groups EVERYONE to Cos Naming Write and Cos Naming Read roles. How to do that using Jython or JACL? Please give some clue, code snippet or a link to extensive Jython documentation.
coms
  • 469
  • 15
  • 38
1
vote
1 answer

Python script for monitoring Admin Console properties in Webshpere

I've a requirement for writing a script in Python or JACL script in which I need to monitor and pull the information from Admin Console of the application running on remote server. I require to pull following information: jdbc jms web container…
Lucky
  • 783
  • 2
  • 10
  • 28
1
vote
3 answers

Select all alias on modifySSLConfig using JACL script

I would want to edit all of the SSL configurations on all of my alias. I have found some resources to do this and my code so far is $AdminTask modifySSLConfig {-alias NodeDefaultSSLSettings -sslProtocol TLSv1.2} $AdminConfig save I would want to…
Zaveid
  • 21
  • 5
1
vote
1 answer

How to read the data from standard output in jatcl by running tcl script in java

I have two questions basically. I am using JACL interpreter to run TCL script in JAVA. My questions are: How to get the data from standard output after running tcl file? How to pass arguments for tcl script when executing using…
1
vote
1 answer

Webpshere Application Server wsadmin script to disable cookies settings in a deployed application

I have several modules(say Mod1) under my deployed application's(say App) manage modules and for the modules Mod1 I have to do these things: Under General properties, 1. Check the box Override session management and click Apply. 2. Click the…
Tabber
  • 151
  • 3
  • 16
1
vote
2 answers

Jacl script war deploymet

I'm trying to deploy war in websphere using jacl script , below is the command i'm using set opts [list -cluster $clusterName -appname $earFileName -contextroot $appContextRoot -installed.ear.destination $destination -MapWebModToVH…
upog
  • 4,965
  • 8
  • 42
  • 81
1
vote
1 answer

WSADMIN jacl Scripting - how get property value

in a WSADMIN jacl Script how i can get wsadmin.properties values ? for example the "com.ibm.ws.scripting.traceFile" ? i already try with puts $com.ibm.ws.scripting.traceFile buts return can't read "com.ibm.ws.scripting.traceFile": no such…
1
2 3