Stateful Java callout/Sharing resources

Not applicable

Is it possible to share classes between proxies? To as another way If I created a singleton in my java callout and had multible proxies using it, would all access the same instance of singleton or would each proxy have it's own instance?

0 1 436
1 REPLY 1

It is possible to share Classes = JAR files.

You can import a JAR resource into an org, or an environment. In that case the Java callout will resolve its classes first from the JARs in the API proxy bundle, then from the jars in the environment, and finally from the JARs attached to the org.

As far as Singleton - no. Every proxy gets its own Java classloader, so the instances are all distinct and not shareable.

On the other hand Edge does have mechanisms for sharing state - the cache, the KVM, and so on.

What do you REALLY want to do?