Re: many instances of Shark in one VM

Vladimir Puskas <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Hello Roshan

you wrote:
> Hi Sasa and others,
> 
>       Is it possible to have many instances of Shark in a single Java VM
> or in JBoss? We are currently running one instance of Shark as a POJO
> library with session bean wrappers in JBoss. 
> 
>       We are looking at providing BPM(using Shark) as a hosted service
> to some of our clients. We'd like to have a different instance of Shark
> (ie. one Shark and database instance per client) for security reasons
> and also to separate the repositories etc. for each client. Running a
> separate JVM/JBoss for each instance may be too expensive and not
> scalable(?). 
> 
>      Shark does not allow you to configure more than one instance at a
> time ('Trying to configure shark instance that is already configured
> !!!'). Is there a way to start multiple instances, each with its own
> configuration(ie. different Shark.conf)? In org.enhydra.shark.Shark, we
> could make some changes to enable multiple instances, but it seems that
> such a change would also have to be made in other classes such as
> SharkEngineManager etc. 
> 	Clustering is also another concern for such a system.
> 
>      Tips and suggestions are welcome from everyone.

AFAIK it's possible to achieve this using separate class-loaders, as in
webapp class-loaders division. You should be able to have multiple
JSPClient applications inside one web server. I've just confirmed this 
by deploying sharkworklisthandler.war twice in Enhydra6.3(Tomcat5.5).

hope this helps
-- 
Vlada
message.footer (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.