Keel 2.1RC2

org.keel.clients.struts
Class KeelWebappSupport

java.lang.Object
  extended byorg.keel.clients.struts.KeelWebappSupport

public class KeelWebappSupport
extends java.lang.Object


Field Summary
private static java.util.logging.Logger log
           
private static java.util.List myClients
           
 
Constructor Summary
private KeelWebappSupport()
           
 
Method Summary
static boolean allowed(HttpSession session, java.lang.String resource, java.lang.String operation)
           
static KeelClient getClient(HttpSession session)
          This method examines the current list of available KeelJmsClient obejcts, and returns the first one for use.
private static java.lang.String getWebappPath(HttpSession session, java.lang.String configPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myClients

private static java.util.List myClients

log

private static java.util.logging.Logger log
Constructor Detail

KeelWebappSupport

private KeelWebappSupport()
Method Detail

getClient

public static KeelClient getClient(HttpSession session)
                            throws NestedException,
                                   ModelException,
                                   java.io.IOException
This method examines the current list of available KeelJmsClient obejcts, and returns the first one for use. If there are no clients, it attempts to create one or more. If the "jms-config" initial property has been specified in the web.xml file, it is used to configure these clients. If no such property was specified, default configuration (JMS via RMI to localhost on port 1099) is used instead, and only one client is configured.

The format of the jms-config is config|config|config, where each "config" is of the form protocol://host:port/jndiname, e.g. like rmi://localhost:1099/JndiServer Each "config" indicates a seperate client, and they are used in the order specified. If a connection goes bad to one client, the next is used and so forth until there are no more, at which point the first one is tried again.

Throws:
NestedException
ModelException
java.io.IOException

getWebappPath

private static java.lang.String getWebappPath(HttpSession session,
                                              java.lang.String configPath)
                                       throws java.io.IOException
Throws:
java.io.IOException

allowed

public static boolean allowed(HttpSession session,
                              java.lang.String resource,
                              java.lang.String operation)

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.