Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Session Scoped Beans loading from Application Context file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Session Scoped Beans loading from Application Context file" Watch "Session Scoped Beans loading from Application Context file" New topic
Author

Session Scoped Beans loading from Application Context file

chiranjeevi gunturu
Ranch Hand

Joined: Mar 02, 2007
Posts: 59
Hi All,
I am working on an application where JSF framework is used.
Some of the functionality of the same application can be accessed using web services and am working on it.
My problem here is that I need to use a bean with session scope which is also used by GUI (JSF- Faces config.xml).
In Faces config file,it is defined the scope as session. But when i try to use the same bean in my web service implementation class, i got an exception: " No Scope registered for "session"".



I am trying to get the bean using ClassPathXmlApplicationContext. Can anyone help me how to register the scope programatically to slove this?



ApplicationContext.xml


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Scoped Beans loading from Application Context file
 
Similar Threads
JSF Dependency Injection inheritence issue
commandLink param problem
Obtaining an instance of a Managed Bean declared with Application Level Scope
PropertyNotFoundException: Can't set managed bean property
a JSF configure question