Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[osgi-users] JAX-RS Whiteboard question
  • From: "Fauth Dirk (XC-ECO/ESM1)" <Dirk.Fauth@xxxxxxxxxxxx>
  • Date: Thu, 7 Jan 2021 09:50:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=de.bosch.com; dmarc=pass action=none header.from=de.bosch.com; dkim=pass header.d=de.bosch.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rs5x8AW5yTHUb7XDn8dQuGX/+F/DtUcFKb7vg6d7Cjo=; b=XV8rMo170cvOS71s+uykdGjEbo80MOCvOrCXHSG2Hy2eMaeQSWKAyPmmCkBr4j1BAqAa4yk9JgsLqxKsVu6zPDKR0x4Eg9Pvi0rTRn9Fam/Wxx91CbQx9LfEWitV4YqPZUfzdm8xgZCSgTupArJWqzmRw4X+HIN4PGBrFrhrbxOHTb/IR2x6SPujk+ClIjoqmuR1rgyGjDLzhxTlFT+98WEEfuWH0WQeESM/OBUqHa4LzcmqMiM3JgPtz5cJySkLR3gY96TjASY5VLx1kitUTCzVzKbQGXWBMYSlrCGkj/V8GDzpUjeumpSKZVsnRdKu7TvTmwdTOufk7bVcD9e2cw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FJtcN1vqil9szZKTTzXwLlepfirH0blyd1Hij4Yv9tU5Zk0QLmugL8efbhMKmCg9SEMutpbXxHIOuMpDxBagJM7ob7FbavfZ8IU65j+vr3LAui3Ei65Cd9p+tyuuUkfpfJURIM9Iigp5irsc7OSqp+FaYy4ttgAHlJMGQq4Jw8yd26ff3pCju51BkQUhieFUWuMK7UcoAwpQ7ZPthuu980s7v5SnvlfXjZZ2X1h2sebSy7Hiu+ju4Q8+9x7gvEHltv65Ny1DV5msWNORVs+WZV9lA0+98BHv8agHSKc81XCibsUinj02pfgwdJB8F6ANVLAAMzMmmlIqBxhtoh4lPw==
  • Delivered-to: osgi-users@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/osgi-users>
  • List-help: <mailto:osgi-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/osgi-users>, <mailto:osgi-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/osgi-users>, <mailto:osgi-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Adbk2BrNclXNqKa6TjOUF46qHj3ChA==
  • Thread-topic: JAX-RS Whiteboard question

Hi all,

 

New year -> new mailing list -> new question. 😊

 

I wish everyone on this mailing list a happy and healthy new year!

 

I’m currently writing the blog post about JAX-RS Whiteboard as promised last year. There is one question that came up where I am not sure about the answer. In the specification all JAX-RS Whiteboard Resource examples are configured with PROTOTYPE scope. In chapter 151.4.2 JAX-RS Whiteboard Resource Lifecycle it is explained that stateless services can also be registered as singletons (which is more common in OSGi). If the JAX-RS Whiteboard Resource service has a state (e.g. a JAX-RS context value in a field) it should be PROTOTYPE scope to get a new instance for each request.

 

All examples in the specification are stateless, so my question is, is there a reason/best practice to create all JAX-RS Whiteboard Resource services with PROTOTYPE scope?

 

Mit freundlichen Grüßen / Best regards

Dirk Fauth


Cross-Domain Computing Solutions, Cross Automotive Platforms - System, Software and Tools Engineering Engineering Software Methods and Tools1 (XC-ECO/ESM1)
Robert Bosch GmbH | Postfach 30 02 40 | 70442 Stuttgart | GERMANY |
www.bosch.com
Tel.
+49 711 811-57819 | Telefax +49 711 811 | Dirk.Fauth@xxxxxxxxxxxx

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000;
Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. Volkmar Denner,
Prof. Dr. Stefan Asenkerschbaumer, Filiz Albrecht, Dr. Michael Bolle, Dr. Christian Fischer,
Dr. Stefan Hartung, Dr. Markus Heyn, Harald Kröger, Rolf Najork, Uwe Raschke


Back to the top