Skip to content

Commit

Permalink
Added Profile STOMP
Browse files Browse the repository at this point in the history
  • Loading branch information
glascaleia committed Oct 27, 2021
1 parent e456e19 commit f97f306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.messaging.simp.stomp.StompCommand;
import org.springframework.messaging.simp.stomp.StompHeaders;
import org.springframework.messaging.simp.stomp.StompSession;
Expand All @@ -301,7 +302,7 @@
/**
* @author Francesco Izzi @ CNR IMAA geoSDI
*/

@Profile(value = "stomp")
@Component(value = "dpcSessionHandler")
public class DPCRadarDataStompSessionHandler extends StompSessionHandlerAdapter implements InitializingBean {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Profile;
import org.springframework.messaging.converter.MappingJackson2MessageConverter;
import org.springframework.messaging.simp.stomp.StompSession;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
Expand All @@ -295,7 +296,7 @@
/**
* @author Francesco Izzi @ CNR IMAA geoSDI
*/

@Profile(value = "stomp")
@Component
public class StompClient {

Expand Down

0 comments on commit f97f306

Please sign in to comment.