cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How get Spring Web Context in another extension ?

Former Member
0 Likes
2,315

Hi All, I want to create an integration test for the bean which located in web context another custom extension. Web context and application context is separated in each extension. so I cannot use @Resouse. How can I get access to the bean? I tried to use @WebAppConfiguration, it doesn't work well

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes
geffchang
Active Contributor
0 Likes

That's great! It would be better if you would also edit your answer with the code. That way, we would still have the answer here on Hybris Experts, case the stackextend blog post gets deleted.

Anyway, +1 for finding the solution.

Answers (1)

Answers (1)

Former Member
0 Likes

Hi, Add the requires-extension u want use another extension in extensioninfo.xml ex.,ext1.,acceleratorcms ext2.,cms2 so u ant use ext2 some bean and context in acceleratorcms so goto acceleratorcms \extensioninfo.xml add

Former Member
0 Likes

It is work with application context only