janus.web.service
Class SapJanusService

java.lang.Object
  extended by janus.web.config.PropertyConfig
      extended by janus.web.service.Service
          extended by janus.web.service.SapJanusService
All Implemented Interfaces:
ExceptionListener

public class SapJanusService
extends Service

Server-Dienst &fuuml,r die SAP-RFC-Anbindung an die Janus-API.

See Also:
SapJanus

Field Summary
protected  int count
          Anzahl der Instanzen
static int DEFAULT_COUNT
           
protected  Properties jcoProps
          Properties für JCO
 
Fields inherited from class janus.web.service.Service
active, debug, debugStream, DEFAULT_ACTIVE, DEFAULT_DEBUG, DEFAULT_PACKAGE, errorlog, log, status, toStringParameters, TRACE
 
Fields inherited from class janus.web.config.PropertyConfig
prefix, props
 
Constructor Summary
SapJanusService()
           
 
Method Summary
 int getCount()
          Ermittle die Anzahl der Instanzen
 Properties getJcoProperties()
          Gebe die JCO-properties zurück
 void init(Properties props, Class clazz)
          Initialisierung der Properties und der SAP-Properties.
protected  void setToStringParameters(String param)
          Setze die Paramter für Service.toString()
 void start()
          Starte den Service.
 void stop()
          Stoppe den Service
 
Methods inherited from class janus.web.service.Service
create, getDebugStream, getName, getStatus, getTraceName, handleException, isActive, isDebug, setField, setTraceName, toString
 
Methods inherited from class janus.web.config.PropertyConfig
convertProperties, getBooleanProperty, getBooleanProperty, getBooleanPropertyArray, getBooleanPropertyArray, getIntProperty, getIntProperty, getIntPropertyArray, getIntPropertyArray, getLogger, getPrefix, getProperties, getProperty, getProperty, getPropertyArray, getPropertyArray, init, readFile, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

count

protected int count
Anzahl der Instanzen


DEFAULT_COUNT

public static final int DEFAULT_COUNT
See Also:
Constant Field Values

jcoProps

protected Properties jcoProps
Properties für JCO

Constructor Detail

SapJanusService

public SapJanusService()
Method Detail

getCount

public int getCount()
Ermittle die Anzahl der Instanzen


getJcoProperties

public Properties getJcoProperties()
Gebe die JCO-properties zurück


init

public void init(Properties props,
                 Class clazz)
          throws IllegalAccessException
Initialisierung der Properties und der SAP-Properties. Extrahiere alle Properties die mit "jco.server." beginnen.
 jco.server.gwhost           Gateway host
  jco.server.gwserv            Gateway service (usually sapgwNN)
  jco.server.progid            Program ID of the server
  jco.server.trace             Enable/disable RFC trace (1 or 0)
  jco.server.params            Arbitrary parameters for RFC library
  jco.server.snc_myname        SNC name
  jco.server.snc_qop           SNC level of security, 1 to 9
  jco.server.snc_lib           Path to the SNC library
  jco.server.unicode           Flags whether to connect in unicode mode (1 or 0)
  jco.server.max_startup_delay Maximum server startup delay time in seconds
  jco.server.dsr               Enable/Disable dsr support (0 or 1)

Overrides:
init in class Service
Parameters:
props - Konfigurationsdaten
clazz - die eigene Klasse
Throws:
IllegalAccessException

setToStringParameters

protected void setToStringParameters(String param)
Setze die Paramter für Service.toString()

Overrides:
setToStringParameters in class Service

start

public void start()
           throws Throwable
Starte den Service.

Specified by:
start in class Service
Throws:
Throwable

stop

public void stop()
          throws Throwable
Stoppe den Service

Specified by:
stop in class Service
Throws:
Throwable


Copyright © 2008 MvC Systemsoftware.