my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What is scope="tenant" mean?" Watch "What is scope="tenant" mean?" New topic

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 , 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?

Bill Gorder

Joined: Mar 07, 2010
Posts: 1648

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

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
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.
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 253

Hey Adrien,

What is Hybris ? how is it related to spring ?

Salil Verma

Salil Verma
Adrien Be

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
jQuery in Action, 2nd edition
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?
Servlet scopes vs. bean scopes in Spring
Maven : deploy libraries to WEB-INF/lib