Introducing Java Extensions
ZXTM 5.0 introduces Java™ Extensions, a powerful new way to build and deploy traffic management logic. Java™ Extensions let an application administrator create very sophisticated rules and deploy them in a single location, at the entry point to the application infrastructure. How do Java™ Extensions work?Java Extensions use a modified version of the standard Java Servlet API. The Java Servlet API is a standard method to write web applications and is a good basis for Zeus’ Java Extensions. Java Extensions run in a dedicated Java Virtual Machine (JVM), on the same server system as the core ZXTM traffic management software. The JVM isolates the Java Extensions from the ZXTM kernel, so that extensions can safely perform operations such as database access without blocking or unduly interfering with the ZXTM kernel:
The Java Extensions engine can run multiple extensions concurrently (subject to a global limit), and extensions can build up and store persistent data, spawn threads for background processing tasks and perform all manner of blocking operations, subject to configured connection timeouts. The engine supports remote debugging and hot code patching so that running extensions can be debugged and updated on-the-fly. Here's an example of a simple 'HelloWorld' Java Extension; the APIs are so similar that the code is identical to the equivalent Java Servlet:
Java Extensions differ from Java Servlets because the Java Extensions can be used for non-HTTP traffic as well; in this case, the For more documentation, refer to the Java Development Guide and the online help in the ZXTM Admin Interface. How are they invoked?Java Extensions are invoked from within a TrafficScript rule, using the
The Extension can observe and modify all aspects of the current request, including any changes made by a TrafficScript rule before the extension was called. The TrafficScript rule can also pass additional parameters into the Extension:
What can you do with Java Extensions?Java Extensions let you draw on the full power of Java, the functionality of the JRE and the huge variety of supporting Java class libraries. You can perform detailed content inspection and modification, communicate with external databases, applications and services, and implement very sophisticated application delivery logic. Possible applications include:
Comments:This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Comment from:
sklepy internetowe warszawa [Visitor]
· http://www.stronyinternetowarszawa.pl
Thanks for this article, it's great. So great that we've made it 'sticky' on The Webmaster Forums. Now we don't have to repeat ourselves, just send people to this article!
Comment from:
Eric [Visitor]
· http://www.oraclaris.com
how to routing request based on URL hash ? the reason I need it is we want to do server LB based on URL hash
|
Recently...
Other Resources
|






