Posted: Wed Jan 11, 2006 6:57 am Post subject: Will Java Compute instances act independent of each other?
Master
Joined: 16 May 2001 Posts: 200 Location: Green Bay Packer Country
My company is very interested in pursuing this option for our custom nodes. We have about a 1/2 dozen of these. We hate the 'big bang' of changing their code on the broker side and having all applications pick it up at the same time. The broker toolkit plugin project at the toolkit level (vs workspace or some other lower level) is also a pain. We'd love to move our code for these over into Java computes. Will these new java computes run within their own space in the exe group's JVM so there won't be any conflicts with other instances of that same class running in the same exe? Would that be true for the same java compute class being referenced from a different node in the same flow? I want to make sure these will be acting truly independent of each other or are there some coding considerations for this? _________________ Thanks!!!
Joined: 16 May 2001 Posts: 200 Location: Green Bay Packer Country
Answering my own post. The JVM is a shared resource at the exe group level. This means that all flows in the exe group will share the code java code deployed in the exe group. If that level of separation is OK for you, then this approach works. If you truly need to have different instances of an instantiated class for each flow, then this does not work for you. Here's an important consideration if you are using java for message body transformations; you need to make sure that the class you call is unique and would not be used by another flow/transformation unless this is intended. All java resources for the java computes are deployed in JAR files that are visible in the exe group. These can be added, deleted, redeployed as needed. Consider them 'services' to the flows. This works for us so we will be using Java Computes going forward. _________________ Thanks!!!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum