1

Hi I have Implemented a RESTful webservice using JBOSS-Rest Easy.

Each REST service has instance variable which provides service methods.

Does having instance variables make restful web services thread unsafe ?

Is there any thing else i need to do to make them ThreadSafe ?

Swakesh
  • 233
  • 5
  • 15

1 Answers1

1

Does having instance variables make restful web services thread unsafe?

No, having instance variables does not make your Resteasy resources unsafe. Resteasy resources are created on a per-request basis by default.

gregwhitaker
  • 13,124
  • 7
  • 69
  • 78