cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy Implementations for ServiceTasks on JBoss Separately

marcuss
Champ in-the-making
Champ in-the-making
Hi,

I am quite new to Activiti and JavaEE and I wonder: How to properly deploy Implementations of ServiceTasks in JBoss?

Scenario:
I am using activiti-rest.war on a JBoss Wildfly and I upload processes using REST. Now, sometimes it happens that I create a process and write an implementation that should be called. How would I deploy that implementation without having to redeploy the WAR archive?

What I tried: making a module that contains my classes as JAR files but sinde they extend JavaDelegate, the local classloader cannot resole that dependency. If I could make JBoss use the parent classloader, that would be too easy but that is aparently not how classloaders in JBoss are meant to work Smiley Wink
What I could probably do: try making a module of Activiti and deploy that while depending on it but I did not realy want to make a copy of Activiti and fiddle around every time I update Activiti.

So: how to dynamically reploy implementations at runtime without updating the WAR archive?

Hope someone has an idea/solution for this case.

Kind regards,
Marcus
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Marcus.

war should have all activiti dependencies (JavaDelegate too). Put jar file with your service task implementation into classpath and it should work. (dynamically redeploy implementations has to be supported by class loader - jBPM 3 had this feature. But there was a decision made to do not support it in activiti. Have a look there)

Regards
Martin