← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 656511] [NEW] Live mutex not working

 

OK.  Don't waste time on it.  I will implement test for successful
open of listening port instead.  Probably a sensible behaviour to
implement if someone attempts to start dhis2 and its already running
is to simply direct the user's browser to the running instance of the
application.  There probably isn't even a need for an error or warning
message.

I'm working on threading model now and will commit some stuff to trunk
later.  Turns out we do need another thread because the call to
server.start() is a blocking call which I had misinterpreted.  But I
have created a server thread to run this rather than adding threads to
the swing ui which I think is more natural and robust.

Bob

2010/10/14 Lars Helge Øverland <larshelge@xxxxxxxxx>:
> The attribute-instead-of-elements did not work, same problem. Generated a
> file with the Launch4J application and the config XML file it produces is
> equal to the XML we have embedded in the POM in the Launch4J plugin section.
>
> 2010/10/8 jason.p.pickering <656511@xxxxxxxxxxxxxxxxxx>
>
>> As Bob says, it looks like there will be a bunch of changes soon.
>> However, I am not able to reproduce this bug on my machine. Granted, I
>> am not on Windows. Until, it is stable, maybe best to use an older
>> version.
>>
>> Regards,
>> Jason
>>
>>
>> 2010/10/8 Hieu Duy Dang <hieu.hispvietnam@xxxxxxxxx>:
>> > Hi,
>> >
>> > Just build Dhis-live with latest updated then using java -jar
>> > dhis2-live-jar-with-dependencies.jar in cmd but i've got a error like the
>> > attached pic along this mail.
>> >
>> > 2010/10/8 jason.p.pickering <656511@xxxxxxxxxxxxxxxxxx>
>> >
>> >> I made the change in the pom.
>> >>
>> >> I do not have Windows at the moment, so cannot test it right now. Let
>> >> me know if this works.
>> >>
>> >> Regards,
>> >> Jason
>> >>
>> >> --
>> > God Helse !
>> >
>> >
>> > ** Attachment added: "Error_StartUp_Live.png"
>> >
>> https://bugs.launchpad.net/bugs/656511/+attachment/1678677/+files/Error_StartUp_Live.png
>> >
>> > --
>> > Live mutex not working
>> > https://bugs.launchpad.net/bugs/656511
>> > You received this bug notification because you are a member of DHIS 2
>> > India Developers, which is subscribed to DHIS.
>> >
>> > Status in DHIS 2 - District Health Information Software: Confirmed
>> >
>> > Bug description:
>> > I discovered that it is currently possible to start more than one DHIS
>> Live server instance at the same time. This was not possible earlier when we
>> generated the executable file directly from Launch4j. The "serial" access to
>> the Live server is controlled by a mutex generated by Launch4j. Now we are
>> generating the executable with the maven plugin and I see we have an xml
>> element defining the mutex in the pom. But it currently doesn't work.
>> >
>> >
>> >
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.pickering@xxxxxxxxx
>> tel:+17069260025
>> sip:jason.p.pickering@xxxxxxxxx <sip%3Ajason.p.pickering@xxxxxxxxx>
>>
>> --
>> Live mutex not working
>> https://bugs.launchpad.net/bugs/656511
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>> Status in DHIS 2 - District Health Information Software: Confirmed
>>
>> Bug description:
>> I discovered that it is currently possible to start more than one DHIS Live
>> server instance at the same time. This was not possible earlier when we
>> generated the executable file directly from Launch4j. The "serial" access to
>> the Live server is controlled by a mutex generated by Launch4j. Now we are
>> generating the executable with the maven plugin and I see we have an xml
>> element defining the mutex in the pom. But it currently doesn't work.
>>
>> To unsubscribe from this bug, go to:
>> https://bugs.launchpad.net/dhis2/+bug/656511/+subscribe
>>
>
> --
> Live mutex not working
> https://bugs.launchpad.net/bugs/656511
> You received this bug notification because you are a member of DHIS 2
> coordinators, which is the registrant for DHIS.
>
> Status in DHIS 2 - District Health Information Software: Confirmed
>
> Bug description:
> I discovered that it is currently possible to start more than one DHIS Live server instance at the same time. This was not possible earlier when we generated the executable file directly from Launch4j. The "serial" access to the Live server is controlled by a mutex generated by Launch4j. Now we are generating the executable with the maven plugin and I see we have an xml element defining the mutex in the pom. But it currently doesn't work.
>
>
>

-- 
Live mutex not working
https://bugs.launchpad.net/bugs/656511
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in DHIS 2 - District Health Information Software: Confirmed

Bug description:
I discovered that it is currently possible to start more than one DHIS Live server instance at the same time. This was not possible earlier when we generated the executable file directly from Launch4j. The "serial" access to the Live server is controlled by a mutex generated by Launch4j. Now we are generating the executable with the maven plugin and I see we have an xml element defining the mutex in the pom. But it currently doesn't work.





Follow ups

References