Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion QMUX startService method query
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alejandro Revilla  
View profile  
 More options Nov 16 2010, 8:14 pm
From: Alejandro Revilla <a...@jpos.org>
Date: Tue, 16 Nov 2010 23:14:18 -0200
Local: Tues, Nov 16 2010 8:14 pm
Subject: Re: [jpos-users] QMUX startService method query

Hi Geoff,

I believe I've fixed this here:

https://github.com/jpos/jPOS/commit/13cddcc932d8ced2db835bba77e9f13c9...

Can you give it a try at your convenience?

On Fri, Nov 12, 2010 at 00:52, Geoff Chiang <geoffchi...@gmail.com> wrote:
> I was just messing around with stopping and starting a QMUX using the
> stop() and start() QBean methods and found that after calling start()
> after it had been stopped, the MUX was unable to read from the space.

> The reason appears to be because of QMUX's implementation of
> startService().  The implementation has the following guard:

> if (getState() == STOPPED) {
>   ...
> }

> When startService() is called from the start() method in QBeanSupport,
> the state is set to STARTING a couple of lines before the
> startService() template method is invoked.  This means that in this
> circumstance, the guard condition never evaluates to true.

> Is it correct to say that the QBeanSupport startService() method is
> only called from the start() method in the same class?  I know the
> startService() method is public, but I can't see anywhere else in the
> framework that invokes it.

> Does it make sense to modify this guard clause to: "if (getState() ==
> STOPPED || getState() == STARTING)"?

> Geoff

> --
> jPOS is licensed under AGPL - free for community usage for your open-source
> project. Licenses are also available for commercial usage.
> Please support jPOS, contact: sa...@jpos.org

> You received this message because you are subscribed to the  "jPOS Users"
> group.
> Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
> To post to this group, send email to jpos-users@googlegroups.com
> To unsubscribe, send email to jpos-users+unsubscribe@googlegroups.com<jpos-users%2Bunsubscribe@googlegrou ps.com>
> For more options, visit this group at
> http://groups.google.com/group/jpos-users


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.