Is synchronisation required here ?

V

vanisathish

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);
}
}
 
C

Chris Smith

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top