Multiple vs single JVM

I was working a problem with connection pooling and it was pointed out that to utilize pooling all my workstations would have to be using the same JVM.

I am not clear how one determines how to use the JVM locally or remotely, or some other way?

Would anyone have an simple explanation for this and care to share it?

TIA

[345 byte] By [silvousplaita] at [2007-11-27 8:18:34]
# 1

> I was working a problem with connection pooling and

> it was pointed out that to utilize pooling all my

> workstations would have to be using the same JVM.

Either wrong or phrased poorly.

Obviously if you are relying of any Java API code and you are using different versions then that is a problem. That is not specific to pooling however. For example you can't use Generics in 1.3 because they didn't exist in 1.3.

Or alternatively just because a pool is running on one box doesn't mean that a pool needs to run on another box. There is no resource sharing between boxes, so conceptually that is not possible.

>

> I am not clear how one determines how to use the JVM

> locally or remotely, or some other way?

>

That doesn't make much sense.

A VM runs on a box.

You don't "use" it remotely. You could VPN via telnet into a box and run the VM on that remote box, but none of that has anything to do with java (it is VPN/telnet.)

Or you could have a client app and and a server app. But then there are still two VMs, one on each box.

jschella at 2007-7-12 20:06:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

To assist I will restate the question with an scenario.

There is a server housing a DB. There are five workstations accessing the DB on the server.

1) If the workstations are running the same application (i.e. manufacturing production) does each workstation utilize its own JVM or would/could they share a single JVM (all specs hardware/software are identical)?

2) Does connection pooling (based on a previous thread I read) require all workstations to be running within the same JVM (i.e. not just identical in version, the actually JVM itself)?

I hope my clarity of question better illustrates the information I seek.

TIA

silvousplaita at 2007-7-12 20:06:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

> To assist I will restate the question with an

> scenario.

>

> There is a server housing a DB. There are five

> workstations accessing the DB on the server.

>

> 1) If the workstations are running the same

> application (i.e. manufacturing production) does

> each workstation utilize its own JVM or would/could

> they share a single JVM (all specs hardware/software

> are identical)?

Most of the time the description above would mean different VMs.

For example windows boxes would generally always be that way.

>

> 2) Does connection pooling (based on a previous

> thread I read) require all workstations to be running

> within the same JVM (i.e. not just identical in

> version, the actually JVM itself)?

A pool runs in a single VM. There is no interaction with other VMs, regardless of what those other VMs are running.

jschella at 2007-7-12 20:06:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...