Forum Discussion
A__Newhagen_667
Nimbostratus
Nov 12, 2010How to launch java executable from irule
Does anyone knows how do you launch a java executable from an irule? Thanks.
9 Replies
- hoolio
Cirrostratus
It's not possible to directly call anything on the filesystem from an iRule. Can you elaborate on what you're trying to accomplish? Maybe there is a way to do what you're trying to indirectly.
Aaron - The_Bhattman
Nimbostratus
Hi A. Newhagen,
Here is one example were you can launch a file based on location. This assumes you are running on Windows I.E. with ActiveX is allowed to launch.
This is untested irulewhen RULE_INIT { set exec { } } when HTTP_REQUEST { switch -glob [HTTP::uri] { "/execute" { HTTP::respond 200 content $::exec } } }
I hope this helps
Bhattman - A__Newhagen_667
Nimbostratus
Thanks for your reply.
Then, is there a way to launch a WebService from an iRule? Thanks again. - A__Newhagen_667
Nimbostratus
Thanks for your reply.
We are trying to execute a java application that accesses a service to check for credentials. The application needs to be launched from the F5, not from the client.
If we can't do this by launching an executable, then the next question was whether we could call Web Service from an iRule?
Thanks again. - A__Newhagen_667
Nimbostratus
I don't want to launch something from the client. I want to launch it from the F5.... - The_Bhattman
Nimbostratus
Hi A. Newhagen,
It's possible but I don't know anything about WebService. However, if the concept of Webservice is making some calls from calls from the client then I suppose it's possible to have the irule to help it out.
Bhattman - The_Bhattman
Nimbostratus
So you want to hold the the java executable on the F5? As hoolio had said it's not possible but is possible to do it indirectly.thanks,
Bhattman
- A__Newhagen_667
Nimbostratus
Thanks to all who replied. It is very much appreciated. - hoolio
Cirrostratus
If you're trying to have LTM perform authentication of client traffic against a remote auth server, you could potentially use the Access Policy Manager module to do it.
You could also make a sideband HTTP request using HTTP::retry in an iRule. See this article from Deb for details:
Conditioning iRule Logic on External Information - 01 - HTTP::retry
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=105
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
