Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004049 [Resin] minor always 05-25-10 09:51 08-01-11 13:54
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004049: activate @SessionScope programmatically
Description (rep by sweigersf)

I have a delicate problem - I'm trying to use RWT (http://eclipse.org/rap) [^] as a user interface for an Ajax web application. The problem with RWT is that it runs its user interface thread in a separate thread than the servlet's session thread. This causes Resit to throw the following error when I try to inject SessionScoped services:

javax.enterprise.context.ContextNotActiveException : '@javax.enterprise.context.SessionScoped' is not an active Java Injection context.
at com.caucho.config.inject.InjectManager.getContext( InjectManager.java:1939)
at alchemy.rwt.AlchemyEntryPoint.createUI(AlchemyEntr yPoint.java:33)
at org.eclipse.rwt.internal.lifecycle.EntryPointManag er.createUI(EntryPointManager.java:92)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.cr eateUI(RWTLifeCycle.java:244)

Is there some way that I can activate a session scope for a different thread than the servlet's session thread
Additional Information
Attached Files

- Relationships

- Notes
(0005411)
ferg
08-01-11 13:54

server/2100

WebApp.runInSessionContext(String sessionId, Runnable task);

 

- Issue History
Date Modified Username Field Change
05-25-10 09:51 ferg New Issue
08-01-11 13:54 ferg Note Added: 0005411
08-01-11 13:54 ferg Assigned To  => ferg
08-01-11 13:54 ferg Status new => closed
08-01-11 13:54 ferg Resolution open => fixed
08-01-11 13:54 ferg Fixed in Version  => 4.0.21


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker