Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1520

A service as a singleton is not working

Bulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2, 7.0.0-M1
    • None
    • Operating System : Windows 7 Enterprise 64 bit, Service Pack 1
      Java : Java HotSpot(TM) 64-Bit Server VM, version "1.7.0_71"
      TOMEE : apache-tomee-1.7.1-plus.zip

    Description

      A simple rest service deployed as a singleton is not working. The service deployed as a singleton, is behaving just like a per-request service. The same example is working as expected in wildfly-8.2.0.Final. Debug statements also showed the same issue.

      The example code is not optimized specifically to any particular servlet container.

      The example code can be typed directly from "Chapter 3-Your First JAX-RS Service" of "RESTful Java with JAX-RS 2.0" 2nd edition by Bill Burke

      Attachments

        1. tomeebug.zip
          8 kB
          srikanth guttula

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            wwwsrikanth srikanth guttula
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment