Is synchronisation required here ?

Discussion in 'Java' started by vanisathish@gmail.com, Jul 17, 2006.

  1. Guest

    Hi All,

    Does the m_glblstatic required to be synchronised in this servlet.
    Appreciate your inputs

    public class xyz_servlet extends HttpServlet {

    /* create fc_asm4800_bean class */
    private xyz_static m_glblstatic = null;

    /** Create bean objects
    */
    public void init() throws ServletException {
    m_glblstatic = new xyz_static();
    }


    processGetReq()
    {
    m_glblstatic.get_xyz_unit_bean(equipID).get_param(a,b,c);
    }
    }
     
    , Jul 17, 2006
    #1
    1. Advertising

  2. Chris Smith Guest

    <> wrote:
    > Does the m_glblstatic required to be synchronised in this servlet.
    > Appreciate your inputs


    This is ambiguous in the specification. I would probably add
    synchronization just to be safe.

    --
    Chris Smith - Lead Software Developer / Technical Trainer
    MindIQ Corporation
     
    Chris Smith, Jul 17, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ram
    Replies:
    1
    Views:
    583
    Mike Treseler
    Feb 24, 2005
  2. Glenn

    Session End Synchronisation

    Glenn, Oct 31, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    399
    Nicole Calinoiu
    Oct 31, 2003
  3. Thor
    Replies:
    1
    Views:
    1,023
    Mikkel Heisterberg
    Jul 2, 2003
  4. Olivier Merigon

    Synchronisation problem

    Olivier Merigon, Jul 28, 2004, in forum: Java
    Replies:
    1
    Views:
    406
    David Hilsee
    Jul 29, 2004
  5. Stephen Riehm
    Replies:
    1
    Views:
    344
    Stephen Riehm
    Dec 15, 2004
Loading...

Share This Page