2016-12-06 3 views
2

Liferay 6.2에서는 messaging-spring.xml에서 사용자 정의 메일을 구성하고 service.properties에 entery를 사용했습니다. Liferay 7 OSGI 모듈 포틀릿에서 동일한 결과를 얻으려면 어떻게 구성 할 수 있습니까? 메시지 버스가 있습니까?Liferay 7 메시지 버스

+0

해결 방법을 찾으셨습니까? –

답변

0

해결책을 찾았습니다. java.lang.IllegalStateException: No servlet context name specified을 피하려면 messaging-spring.xml 파일에서 메시징 구성 구현을 변경해야합니다.

com.liferay.portal.kernel.messaging.config.PluginMessagingConfiguratorcom.liferay.portal.kernel.messaging.config.DefaultMessagingConfigurator으로 바꿉니다.

나를 위해 작동합니다. 한 모듈에서 메시지를 보내고 다른 두 모듈에서 메시지를받을 수있었습니다.

+0

코드를 공유 할 수 있습니까? –

+0

타카보기 : https://github.com/liferay/liferay-portal/blob/586f66c629b559e79c744559751ecb960218fe0b/modules/apps/collaboration/flags/flags-service/src/main/resources/META-INF/spring/messaging. XML에서 Liferay 소스 코드. 또는 @Annotations를 사용할 수 있습니다. 나는 메시징에 관한 블로그 글을 쓰려고 노력할 것이다. – KirkoR