scope « Session « Java Enterprise Q&A





1. session scope in velocity    stackoverflow.com

how can i use session scope in VELOCITY(in view part am using sample.vm like that)... my requirement is when i login into a page,i want to store the user's name& some ...

2. StructureMap returns a disposed nHibenrate session object from thread local scope    stackoverflow.com

[OR] How to define a StructureMap life cycle for UoW to be consumed by http requests and quartz jobs I have this web application which uses SM for IoC. I am ...

3. Request scoped context for stateless session beans    stackoverflow.com

Is there a request-scoped context for EJB3 session-beans? My environment is Java-EE-5. This example

@Remote(SessionFacade.class) @Stateless
public class SessionFacadeBean implements SessionFacade {
  @EJB
  private Other bean;

  public void myBusinessMethod() {
  ...

4. Calling a CDI session scoped producer method from an EJB stateless session bean    stackoverflow.com

I want to inject the current user using @Inject @Current User across all layers (i.e. web layer, EJB layer). In order to do this, I have the following CDI Producer method:

@Named
@SessionScoped
public ...

5. JEE6 application session scoped objects    stackoverflow.com

I'm still pretty new to JEE6 having come from a Servlets + JSP style of development on legacy systems. In the applications I worked on we would just throw objects into ...

6. session scoped managed bean issues    forums.netbeans.org

Hi all, I have a managed bean that controls data between database and JSF page. I need to make my managed bean session scoped because primefaces will not export it to pdf if it were request scoped. But the issue I run into is that the managed bean does not update itself with newly added entities from database. How do I ...

7. Re: session scoped managed bean issues    forums.netbeans.org

8. Portlet Session Scope - Application or Portlet    coderanch.com

Hi all, I am new to Portlets and confused about the Portlet Session Scope. Shall appreciate if any one could explain this to me. Here is my understanding of the Portlet Session Scope. 1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct? 1.a. Is it ...





10. Application Scope Session in IBM portal server    coderanch.com

Hi, What does application scope really mean? I have a application in which i have three portlets. I want to access a variable thru all the portlets so i set that variable in application scope like ((PortletRequest)request).getPortletSession().setAttribute(key, value, scope); when i log off portal and re-login i couldn't find that variable in the session. I want the variable to be in ...

11. Application vs. Session scope in Axis    coderanch.com

Hello all. I am running into a problem on a service that I am working on. I have a web service that delivers content to end-users' sites. There is a control panel that allows the users to select what content they want delivered. The problem I am having is actually twofold: If I run the service in application scope, I get ...

14. JBuilder doesn't recognize the scope="session"    coderanch.com

I have a jsp file begin with this line: <%@ page session="true" scope ="session" import = "ceava.*" %> This compiles well using JDK1.2.2 and JSDK2.1, and I can run it well under JRun 2.3. But when I compile the same jsp file using JBuilder 5 (JDK1.3, JSDK 2.1), it complains: "myJSP.jsp": Page directive: Invalid attribute, scope at line 1, column 1 ...

15. Request Scope and Session Scope    coderanch.com

I'm working w/Servlets and JSP pages and want to be efficient with my memory. My question deals with request scope and session scope. If some information needs to only go from one page to the next, shouldn't I put this information in the request scope. And if I DO put this in the request scope, will this survive when I hit ...

16. confusion on session and request scope    coderanch.com

Hi there, I have some confusion on session and request scope, which was not completely answered by existing threads. When is a better time to store info. in request scope than in session scope? I could not think of any example. It seems that if my web app. wants to be context aware, I always have to use session (besides cookie, ...





17. Stupid question - Request scope vs Session scope    coderanch.com

Hello All Stupid question. Am I right in assuming that there is little difference in the amount of data transfered over the network for objects stored in request scope, accessed in a JSP, vs objects stored in Session scope accessed the same way? The objects are just stored in the same way right? The reference client side to a request attribute ...

18. Synchronizing on objects in session scope    coderanch.com

Yes, you should always consider the possibile need to synchronize access to objects in session scope. Consider how many separate "simultaneous" requests may be generated by a browser to render a single page after all. Compared to all the other time consuming things that go on to handle a request, synchronization overhead is very small. Bill

19. Scope of Session Attributes    coderanch.com

I thought from my earlier post I had the scope of the session attribute understood. I have a web app located on the web server. When a user logs on several session attributes are set and on a main menu page a message displays their name. Today I found out that if one user has logged in everything appears to be ...

20. request & session scope    coderanch.com

Yes that bit of code is getting a CustomerNumber from session scope. My question was why should we get it from session? why is that if statement is needed? Here we can directly get customerNumber from request scope and put in session scope, if we want to implement session management. I dont understand the need of the if statement?

21. Doubt in Session Scope    coderanch.com

22. Doubt in Setting the session scope as Application    coderanch.com

Hello friends, First of all thanks to all for giving the support from the starting. I need a new requirement. I need to call DB2 to get the records for the first time user login and need to maintain in the application scope. So when the next user comes in, no need to call DB2 again for the records. If the ...

23. Accessing a session scoped variable anywhere outside the session scoped context    coderanch.com

I am stuck with this very interesting requirement and need your inputs! In our web application, the goal is to pass a user's company to a static method getSession() of a ConnectDatabase class that returns a hibernate session. One common area, the HttpSession is where we store the user's companyName as it is user specific but am unable to find a ...

25. What is a Session's scope?    coderanch.com

Hi, I had thought that a "session" was associated with the the browser window. When an new browser window is opened a new session is created and associated the new browser window. However the code below displays the same Session ID for two browser windows, leading me to believe that I am not correct. HttpSession session = req.getSession(true); out.println("Session ID is: ...

27. difference request and session in scope    forums.oracle.com

can any one explaine me what is the difference request and session in scope in struts-config.xml i have a text box and a button in demo.jsp page while clicking the button after entering the text box it navigate to result.jsp page result.jsp page has a return button while clicking the button it navigate to demo.jsp page if i set scope as ...