Hi Gary,

 

 

With the last stable release  it is possible to use dynamic classloading to deploy NEW classes from jars hosted on an HTTP server but once they are loaded it is not possible to replace/unload those classes to upgrade them. What is possible, though, is to deploy your classes (using dynamic classloading) in a subprocess and then when you want to refresh them you can restart the subprocess that in turn will load the latest version. The caveat is that you have to be careful not you deploy any component that uses “replaceable” classes in the daemon process because you cannot replace them unless you restart the daemon.

 

The good news is that we have been changing the way classloading works to make it more flexible and dynamic and we have integrated SmartFrog with OSGi so that you can even use OSGi to manage different versions of the same jar for different applications.

 

All this new classloading infrastructure  is more or less ready to be shipped and will be part of the next release of SmartFrog but it is not yet merged into the Trunk and lacks of proper documentation. In any case, if you want to start using it you can get it from SVN in the OSGi branch.

 

One thing that you can do to mitigate the restart of the daemon is to run your application on a subprocess with a name and then you terminate all this subprocesses when you want to reload a new version of your jar files

 

Julio


From: smartfrog-support-bounces@lists.sourceforge.net [mailto:smartfrog-support-bounces@lists.sourceforge.net] On Behalf Of Robinson, Gary
Sent: 30 August 2007 09:13
To: smartfrog-support@lists.sourceforge.net
Subject: [Smartfrog-support] HTTP Server to serve classes

 

Hi all,

 

Could someone please point me in the direction where i could learn about setting up an HTTP Server to serve classes to SmartFrog to avoid daemon restarts when new jar files are created/old jars updated.

(It is mentioned on the pdf SmartFrog tutorial, on page 4 that this is described in the SmartFrog Reference Manual but i cant seem to find any information).

 

Thanks,

 

Gary :)

 


From: Guijarro, Julio [mailto:julio_guijarro@hp.com]
Sent: 22 August 2007 11:12
To: Robinson, Gary; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

Glad to here that.

 

Regards,

 

Julio G

 


From: Robinson, Gary [mailto:gary.robinson@sap.com]
Sent: 22 August 2007 11:07
To: Guijarro, Julio; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

 

Hi Julio

 

Brilliant advice. Now working :).  Thank-you very much.

 

Gary

 


From: Guijarro, Julio [mailto:julio_guijarro@hp.com]
Sent: 22 August 2007 10:32
To: Robinson, Gary; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

Yes, I thought that vmware would always use a fixed subnet for VMNet8. In you case, you either modify the gateway or modify the host table to use: 192.168.116.xxx addresses.

 

Also in the host os (it will have multiple nics) set the environment variable (before starting the daemon):

SFSERVERHOSTNAME=”sfdemohost”.

 

This will tell the RMI server to use the right hostname for the RMI stubs.

 

Julio

 

 


From: Robinson, Gary [mailto:gary.robinson@sap.com]
Sent: 22 August 2007 10:05
To: Guijarro, Julio; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

 

Hi Julio,

 

In VMWare Server, my vmnet host , VMNet8, has a gateway mask of 192.168.116.2, are you sure that i do not to change this if i want to assign IPs on a different subnet, ie 192.168.182...?


Gary

 


From: Guijarro, Julio [mailto:julio_guijarro@hp.com]
Sent: 22 August 2007 09:51
To: Robinson, Gary; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

Hi Gary,

 

I don’t know what guest os you are using but what you need to do is not use DHCP and using the configuration tools for your OS, set networking with the ip and and then reboot. In this way you will always be able to locate the machines by name or ip.

 

If you make sfdemohost 127.0.0.1 then when you copy this to all the guest hosts none of them won’t be able to locate back the server code in your laptop because all of them will try to locate themselves.

 

No, you don’t need to disable your Ethernet adapter for this to work.

 

You don’t need to modify the gateway.

 

Julio

 


From: Robinson, Gary [mailto:gary.robinson@sap.com]
Sent: 22 August 2007 09:36
To: Guijarro, Julio; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

 

Hi Julio,

 

How do I set the ip/name in every vm os according to the table? Do i set my adapter up for DHCP or how can i explicity set ip addresses? What should my Gateway ip address be set as? As for "sfdemohost" should it not just be my local address, ie 127.0.0.1? Do i need to disable my physical ethernet adapter for this to work?

 

Kind Regards,

 

Gary

 


From: Guijarro, Julio [mailto:julio_guijarro@hp.com]
Sent: 21 August 2007 18:17
To: Robinson, Gary; smartfrog-support@lists.sourceforge.net
Subject: RE: [Smartfrog-support] Virtual Machines and SmartFrog

Hi Gary,

 

I don’t have/use vmware server but I use vmware workstation and this is what I do to make sure that the vms can locate each other:

 

1. Configure VMWare

- Set up VMWare networking to use *only* the NAT/DHCP service (VMNet8)

  disable the other network services

 

2. Configure windows/linux networking  (in host and vms)

 

- Set ip/name in every vm os according to the table bellow.

 

- Add the following to the Windows HOSTS file

(c:\windows\system32\drivers\etc\hosts)

- Add the following to the linux HOSTS file

(\etc\hosts)

 

 

Example:

192.168.182.1  sfdemohost

 

192.168.182.100  sfdemo00

192.168.182.101  sfdemo01

192.168.182.102  sfdemo02

192.168.182.103  sfdemo03

192.168.182.104  sfdemo04

192.168.182.105  sfdemo05

192.168.182.106  sfdemo06

 

 

Once you have finished test with nslookup to see is all the machines can reach the others.

 

Then everything should work.

 

Please, let me know if this works for you on VMWServer or if you need more detailed instructions.

 

Regards,

 

Julio Guijarro

 

 


From: smartfrog-support-bounces@lists.sourceforge.net [mailto:smartfrog-support-bounces@lists.sourceforge.net] On Behalf Of Robinson, Gary
Sent: 17 August 2007 14:57
To: smartfrog-support@lists.sourceforge.net
Subject: [Smartfrog-support] Virtual Machines and SmartFrog

 

Hey guys,

I am using VMWare Server, and I am not allowed to use bridged networking mode (for virtual machines) in my network. How can I set up VMWare Server so that I can deploy component descriptions to a sfDaemon running on a virtual machine, from a physical machine?

I have tried using NAT but when I try deployment it either fails, or deploys to my physical machine (if its running sfDaemon).

Kind Regards,
Gary