JBoss Community

Re: ServerManager-Server(-ProcessManager) communication

created by Kabir Khan in JBoss AS7 Development - View the full discussion
Once this is all properly tested and I get the domain controller to work in my branch I wonder what to do next. We have two sets of connections at the moment:
1) Server processes connect to SM via a socket
2) Server/SM processes connect to PM via a socket
If 1) goes down I was originally going to suggest routing the commands via 2) instead, but I think it makes a lot more sense to send the RECONNECT_SERVERS command via 2 instead? The simplest way would be in SM to stop and start the SM listening socket whenever the direct connection to ANY server goes down.
If 2) goes down I am not sure what to do. I have thrown away all the stdio stuff that was originally there. But if 2) falls over I should probably switch to stdio for that process and route the commands through there and also invent some commands to make the process reconnect to the process managers socket. Does anybody know if there are any problems with suddenly starting to consume a processes output and starting to write to its input and then stopping doing that again?

Once this is all properly tested and I get the domain controller to work in my branch I wonder what to do next. We have two sets of connections at the moment:

 

1) Server processes connect to SM via a socket

2) Server/SM processes connect to PM via a socket

 

If 1) goes down I was originally going to suggest routing the commands via 2) instead, but I think it makes a lot more sense to send the RECONNECT_SERVERS command via 2 instead? The simplest way would be in SM to stop and start the SM listening socket whenever the direct connection to ANY server goes down.

 

If 2) goes down I am not sure what to do. I have thrown away all the stdio stuff that was originally there. But if 2) falls over I should switch to stdio for that process and route the commands through there and also invent some commands to make the process reconnect to the PM socket. Does anybody know if there are any problems with suddenly starting to consume a processes standard output and starting to write to its standard input and then stopping doing that again?

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community