Hi,

There is a way for starting the MinaTaskServer at ExecutionServer startup? I
want to configure TaskServer out of the application and to have it always
"up".

I mean to replace this code from the application to some configuration in
execution server:

        EntityManagerFactory emf =
Persistence.createEntityManagerFactory("org.drools.task");

        TaskService taskService = new TaskService(emf,
        SystemEventListenerFactory.getSystemEventListener());

        TaskServiceSession taskSession = taskService.createSession();

        taskSession.addUser(new User("Administrator"));
        taskSession.addUser(new User("foo"));
        taskSession.addUser(new User("foo1"));


        MinaTaskServer server = new MinaTaskServer(taskService);
                
        Thread thread = new Thread(server);
        thread.start();


Any idea will be appreciated

Thanks!
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Start-TaskServer-in-Execution-Server-tp1971455p1971455.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to