
de.tsl2.nano.service.util.ServiceRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.serviceaccess Show documentation
Show all versions of tsl2.nano.serviceaccess Show documentation
TSL2 JEE Service Access (Generic Services for Entity Access, JEE File-System-Connector, Generic Featuring, Job-Scheduling, BeanContainer, Batch, Comfortable Bean Query Definitions, JAAS, Authentification, Authorization, )
/*
* File: $HeadURL$
* Id : $Id$
*
* created by: Thomas Schneider, Thomas Schneider
* created on: Feb 27, 2012
*
* Copyright: (c) Thomas Schneider 2012, all rights reserved
*/
package de.tsl2.nano.service.util;
import java.io.File;
import java.io.FileReader;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import de.tsl2.nano.core.ManagedException;
import de.tsl2.nano.core.cls.BeanClass;
import de.tsl2.nano.core.execution.ICRunnable;
import de.tsl2.nano.execution.Runner;
import de.tsl2.nano.serviceaccess.ServiceFactory;
/**
* ON IMPLEMENTATION... provides starting services from shell. call arguments:
*
*
* 1. properties file-name
* 2. login user
* 3. login passwd
*
* the properties file should contain:
* service=[full remote service interface path]
* method=[remote service method]
* loginmodule=[login module name]
*
* the context is a map with objects to be compatible to Properties.
*
* preconditions:
* - the tsl2nano 'project.properties' should be found on root classpath (perhaps add your shared-plugin)
* - the file-pathes (like jndi-file) defined in project.properties should be found
* - the appservers client libs should be found in classpath
* - the service interfaces should be found in classpath
* - the given loginmodule must be given as java-start-argument:
* e.g. -Djava.security.auth.login.config=myproject/config/jaas-login.config
*
* test:
* a testable servicerunner.properties is available on project-root-path
*
*
*
* @author Thomas Schneider, Thomas Schneider
* @version $Revision$
*/
public class ServiceRunner extends BaseServiceTest implements ICRunnable> {
Properties p;
ArrayList> argList;
/**
* {@inheritDoc}
*/
@Override
public HashMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy