The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: News.Report message schema in xAPFramework.net


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Re: xAP / xPL Gateway


  • Subject: Re: Re: xAP / xPL Gateway
  • From: Stuart Booth
  • Date: Sat, 06 Sep 2003 09:20:00 +0000

On Sat, 6 Sep 2003 08:42:57 +0100, "Ian Lowe" <<a
href="/group/xAP_developer/post?postID=DSeQsh60CHFzBO0IJiS0rybv1YDOnsAxOYY-DbETbZoff_hJxhml1BYbf1EWe_fGH2UtMdZKeBThnvV8QPw">ian@w...</a>>
wrote:

>As long as all of the applications behave in this well-formed way, it
should
>work fine. As xPLHal starts as a windows service, it will be running
long
>before anyone gets to the running applications stage, so each of the
xAPps
>launched by the end user will just detect the hub and go..

Funnily enough that's the reason I introduced the ability to configure
the application to either force it start as a Hub, a HubClient, or
start in auto-detect mode (the default).

All my apps can now be installed as Windows Services (although I
haven't uploaded them yet as I found a bug last evening :( ) but I
wasn't aware, when I first implemented the Hub as a Service, if I
could setup a start-up order. I knew that in future all my apps would
become serviceable. Just took a bit longer than I intended... Oops.

As I recall somebody mentioned a while ago that there is an ability to
link services via dependencies of some kind, but I've not looked into
this yet. Without it I don't necessarily know if my CallerID xAPp will
start before or after the Hub. Hence I added the ability to force the
CID xAPp as a HubClient, and the Hub, well it always loads as a Hub
and won't start if it can't. If the CID apps starts first, it'll just
register on a subsequent h/b so no problem.

This morning as I was waking up I was thinking about this (I know, an
odd time to be doing that perhaps) and realised I probably need to
change the Hub error message if it detects another Hub running.

>Remember, this is for the server running xPLHal only: it doesn't apply
to
>any other machine running xAP on your network. As far as I can see,
this
>won't change anyone's behaviour or experience.

I've written a tool to automatically package up my xAPps and upload
them to my web site. It also deploys them onto my Server for me as I
run them on there for a while before releasing them onto the site.

So in actual fact, in my case at least, I run all my various xAPps
(and hopefully xPL apps! :) on there together in a variety of
configurations that I'm testing. My Server isn't entirely reliable and
every few weeks decides to reboot, or I fiddle with something, so I'm
really keen to make my most used xAPps services too.

Don't know if I'm a special case though. Some would say I am... ;-)

S
--
Stuart Booth
xAPFramework.net - a reusable xAP framework for .net

<a href="http://www.xapframework.net/";>http://www.xapframework.net/</a>
<a
href="/group/xAP_developer/post?postID=mVjsDxVNI_NDOoskAgo8pRkWHTWXh_IAVZockoFz6DnXb5KaJ0sMpvW3lvCRRTMVyk2O9z76CZybcgesJee7pExj">stuart@x...</a>





xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.