This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes What is scope= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What is scope="tenant" mean?" Watch "What is scope="tenant" mean?" New topic
Author

What is scope="tenant" mean?

Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
I see that in the Spring configuration files , that scope="tenant" is used ?
I tried searching in Springsource.org , Spring forums and googled it but couldn't get much info.

a) where this will be used and in what contenxt?
b) what is the purpose of it?


thanks
Jyothsna
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1646
    
    7

Well I can tell you it is not a standard scope. Either it is custom to your application or to some other 3rd party library you are using. You can search for CustomScopeConfigurer in your context xml files to see if you can find it being registered anywhere and then take a look at the implementation to figure out what it does. If you don't find it there you can look for all implemenations of the Scope interface in your workspace and try to figure out what library it is coming out of.

Good luck

[How To Ask Questions][Read before you PM me]
Adrien Be
Greenhorn

Joined: Oct 08, 2013
Posts: 2
This is a Hybris scope.

This is only for version prior Hybris 5.

Tenant scope: (Hybris <5) one bean instantiated per tenant of hybris.

More info on the Hybris forum & wiki. see https://wiki.hybris.com/display/release4/Multi-Tenant+Systems
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

This is not the standard scope defined by spring framework. This must be a custom scope defined by your application.
http://www.javabeat.net/2013/03/spring-bean-scopes-request-session-global-session-example/
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 253

Hey Adrien,

What is Hybris ? how is it related to spring ?

Regards
Salil Verma


Regards
Salil Verma
Adrien Be
Greenhorn

Joined: Oct 08, 2013
Posts: 2
Salil Vverma wrote:
What is Hybris ? how is it related to spring ?

Hybris is an eCommerce platform written in Java. Hybris uses Spring. see http://www.hybris.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is scope="tenant" mean?
 
Similar Threads
Tomcat 7.0 configuration w/ multi-tenancy support & realm security & different login.html per tenant
What is the difference between prototype and request scope?
Spring/Struts/EJB?
Servlet scopes vs. bean scopes in Spring
Maven : deploy libraries to WEB-INF/lib