dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

ServiceBean.getSpringContext() is null

Open windywang opened this issue 8 years ago • 8 comments

when I use ServiceBean.getSpringContext() in filter ,I found the object is null。I use springboot integrated dubbo。 I used to have debug,But it was found that the breakpoint did not come in when springboot started. On the other question, I want to ask what API can get all the registered services thank u。

windywang avatar Mar 22 '18 12:03 windywang

show your code,please ,let's solve the probem together ~

linghushaoxia avatar Mar 23 '18 09:03 linghushaoxia

Please show your code for further diagnosis.

leiwei2094 avatar Mar 26 '18 05:03 leiwei2094

@hengyunabc will check this problem in his hands-on working.

diecui1202 avatar Apr 08 '18 02:04 diecui1202

On the other question, I want to ask what API can get all the registered services

Dubbo doesn't support this func at this point, i will file an issue to track.

chickenlj avatar Apr 25 '18 12:04 chickenlj

#1674

chickenlj avatar Apr 25 '18 12:04 chickenlj

Seems can use a static method, ApplicationModel.allProviderModels()

imsunv avatar Apr 25 '18 12:04 imsunv

not resolved yet?

Marthevin avatar Feb 14 '19 03:02 Marthevin

not valid any longer, we don't provide static method to get context from ServiceBean. The original impl is incorrect.

beiwei30 avatar Feb 19 '19 07:02 beiwei30