|
From: Christian M. <chr...@ta...> - 2011-01-31 02:50:47
|
Lars, my sincere apologies on the long delay. Leif is currently not available and I haven't realized this conversation is still pending. While your problem sounds its root cause is actually based on your OS. For Standard Editions you could use the start type "DELAY_START" http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-starttype.html This adds a small delay on the service for starting up. So this should give it enough time to start. Another option would be to set a dependency on tcpip wrapper.ntservice.dependency.1=tcpip This tells the Service Manager not to start your service until the tcpip service was started. Which sounds pretty much what you asked for. Looking at the real reason, why the network is established so late, though. I think one of the services running on your machine is probably interfering the network acquisition. Could you try the following on your machine: http://support.microsoft.com/kb/331796/en-us This is a bit of try & error but you eventually should be able to locate the problem. Best Regards and sorry for the delay. Christian On Sat, Jan 29, 2011 at 9:41 PM, Lars Schnoor <Lar...@if...> wrote: > Hi Leif > > Can I assume that you lost interest in looking into the problem? > > Lars > > On 31-12-2010 18:04, Leif Mortenson wrote: >> Lars, >> We were able to reproduce this. It seems to be a Windows strangeness. >> Let us look into this and see if there is a way we can work around >> this on startup. I will get back to you shortly. >> >> Japan is out on New Years holiday until the 4th so sorry if this takes >> us a few days to get you an answer. >> >> Cheers, >> Leif >> >> On Fri, Dec 31, 2010 at 8:04 AM, Lars Schnoor<Lar...@if...> wrote: >>> I am not sure what you mean with direct network connection, I am >>> creating some UDP sockets and a TCP socket. Yes, I am using DHCP. >>> >>> On 30-12-2010 23:51, Leif Mortenson wrote: >>>> Lars, >>>> Is this is a direct network connection? Using DHCP? >>>> >>>> Cheers, >>>> Leif >>>> >>>> On Fri, Dec 31, 2010 at 7:41 AM, Lars Schnoor<Lar...@if...> wrote: >>>>> Hi Leif >>>>> >>>>> It is actually the network itself, I often see a circle over the network >>>>> icon in the taskbar when Windows 7 is started. After a few seconds it >>>>> disappears, it looks like it needs some more time to get the IP-address >>>>> or something. >>>>> When I started to test my application on Windows 7 Beta I experienced >>>>> that if I query the network as soon as my application is started the >>>>> machine had a 169.x.x.x address, a standard Windows IP-address, this >>>>> address was replaced by the correct address if I waited for 20 seconds >>>>> before querying the network card. >>>>> I have to admit that I don't know which service I would have to wait for. >>>>> >>>>> Lars >>>>> >>>>> >>>>> On 30-12-2010 23:30, Leif Mortenson wrote: >>>>>> Lars, >>>>>> What is the network service that you are seeing delays with? General >>>>>> networking should come up before any services are started. >>>>>> >>>>>> If you are trying to make use of a network share, then this is a known >>>>>> problem with the way Windows handles network shares. We have added a >>>>>> feature to make it possible to set up network shares within the >>>>>> service. Please see the following for more information. >>>>>> http://wrapper.tanukisoftware.com/doc/english/prop-share-general.html >>>>>> >>>>>> Another solution is to reference using UNC format. This will only >>>>>> work reliably if the drive is public however. >>>>>> >>>>>> If you know the service you need to wait for, you can also set up >>>>>> service dependencies with the following property: >>>>>> http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-dependency-n.html >>>>>> >>>>>> Please let me know how this works for you, or if this was not what you >>>>>> were looking for. >>>>>> >>>>>> Cheers, >>>>>> Leif >>>>>> >>>>>> On Wed, Dec 29, 2010 at 10:01 PM, Lars Schnoor<Lar...@if...> wrote: >>>>>>> Hi >>>>>>> >>>>>>> My Java application that I am starting with the Java Service Wrapper >>>>>>> uses the network. I noticed that on Windows 7 it sometimes takes more >>>>>>> time before the network is ready. Is there a way to define dependencies >>>>>>> so that my application first is started when the network is up and running? >>>>>>> Thanks in advance! >>>>>>> >>>>>>> Lars >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |