質問編集履歴

2

情報追記

2017/05/22 04:56

投稿

m.furu
m.furu

スコア26

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,14 @@
3
3
  JavaEEをベースにWebアプリケーションを作成しています。
4
4
 
5
5
  ビジネスロジックや、データアクセス用のクラスに、`@RequestScpoed`を使って実装していたのですが、jBatchからは、`@Dependent`または、`@ApplicationScoped`しか呼び出せないことがわかり、困っています。
6
+
7
+
8
+
9
+ 以下の補足情報のサイトに以下のコメントがあったのですが、対応方法がわかりませんでした。
10
+
11
+ 『Your use case seems much more appropriately for a singleton ejb bean, rather than CDI beans. Additionally, you can define this beans as stateless session beans, and let the CDI requestscoped beans delegate their operations to the stateless session beans, and hence you dont have to duplicate code』
12
+
13
+ 『ステートレスセッションBeanとして定義し、CDIリクエストスコープのBeanにステートレスセッションBeanにその操作を委任させることができます。したがって、コードを複製する必要はありません』
6
14
 
7
15
 
8
16
 

1

タイトル修正

2017/05/22 04:56

投稿

m.furu
m.furu

スコア26

test CHANGED
@@ -1 +1 @@
1
- CDIの`@RequestScoped`で作成したビジネスロジックをjBatchから呼び出す方法
1
+ CDIの@RequestScopedで作成したビジネスロジックをjBatchから呼び出す方法
test CHANGED
File without changes