Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Calling web container from jacl command

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every one,

Do you have any idea on how we can run a jacl command script to call a WAS web container http intercepter method?
I am new to jacl and websphere admin and now I need to call a servlet from a jacl command.
Thanks in advance
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain WHY you need to call a Servlet from a JACL command? There is a way to call out to Java from JACL in WAS, but I'd be dubious about doing it -- please explain why you think you need to first.

Kyle
 
giang nguyen
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your question.
The reason I need to call a servlet from jacl command is that: I have another independent programm running and needs to notify my web application of some important events. That program will run the jacl script file to do this.
I am just learning jacl. As I understand, jacl command can call methods on any object in the same jvm. If so, I need to know the web container object name and the appropriate method to call. Or more simple, can the jacl send a http request to the web container?
Anther simple solution would be to use a static flag and jacl script can set this flag. My web application will check this flag every time a new request come and decide on the action depending on the value of the flag
.......
I Hope to receive an advice from you.
Thanks
 
Beware the other head of science - it bites! Nibble on this message:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic