Hi, I do not think this can be done but I will ask anyway. We are in the process of converting some of our Monk eWays to Multi Mode Java (stceway.exe) eWays. One requirement of the project is that we support all of the functionality we supported in our Monk eWays, and one bit of functionality is the ability to reload a "subcollaboration" without having to stop and restart the eWay. We have hundreds of collaborations and they are frequently being modified for a variety of reasons and it is not possible for us to shut down the application every time we want to promote an updated collab.
In Monk it is very easy, the eWay accepts a specific message type which tells the eWay to reload the collab and the code looks like this:
;;Check if this is just a reload message
(if (string-begins-with? message-string "RELOAD")
(begin
;; Reload collab
(load (substring message-string 6 (string-length message-string)))
)
)
In a Java Collaboration Rule when you want to load a subcollaboration the code looks like this:
JSubCollabMapInfo mapForSubCollab = jCollabController.createSubCollabMapInfo(sCollabName, this);
Once the subcollaboration is loaded the JCollabController class apparently keeps a cached copy of the JSubCollabMapInfo class created in the above statement. So even though I remove all references to this class instance, the next time I call createSubCollabMapInfo I get the same instance loaded from the cache.
Does anyone know how I can force the JCollabController to reload a collaboration rule?
In Monk it is very easy, the eWay accepts a specific message type which tells the eWay to reload the collab and the code looks like this:
;;Check if this is just a reload message
(if (string-begins-with? message-string "RELOAD")
(begin
;; Reload collab
(load (substring message-string 6 (string-length message-string)))
)
)
In a Java Collaboration Rule when you want to load a subcollaboration the code looks like this:
JSubCollabMapInfo mapForSubCollab = jCollabController.createSubCollabMapInfo(sCollabName, this);
Once the subcollaboration is loaded the JCollabController class apparently keeps a cached copy of the JSubCollabMapInfo class created in the above statement. So even though I remove all references to this class instance, the next time I call createSubCollabMapInfo I get the same instance loaded from the cache.
Does anyone know how I can force the JCollabController to reload a collaboration rule?