Problem statement:
Create a connection to Qemu. Done by the call-conn1 = new Connect("qemu+ssh://login_name@IP/system", false). This is done in one class (connect.java).
Create new VMs on the above machine at the IP. Done by the function call create() in ANOTHER class (create.java)
Doubt: 1. When I run the above program, every time I want to create a VM, I have to create an object of connect.java . Is there any way I could make just ONE connection to Qemu and proceed with my operations (create.suspend) on the VMs running on it? I'm using Swing to create the UI everytime the user wants to create/suspend a VM.