forked from eclipse-kapua/kapua
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse-kapua#4087 from eclipse/feat-upgrade_artemis
⬆️ [Dependencies] Upgrade Artemis from 2.31.2 to 2.38.0
- Loading branch information
Showing
21 changed files
with
202 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2020, 2022 Red Hat Inc and others | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
Red Hat Inc - initial API and implementation | ||
Eurotech | ||
--> | ||
<!DOCTYPE xml> | ||
<configuration> | ||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="liquibase" level="WARN"/> | ||
<logger name="org.apache.activemq.audit.base" level="WARN"/> | ||
<logger name="org.apache.activemq.audit.message" level="WARN"/> | ||
<logger name="org.apache.activemq.audit.resource" level="WARN"/> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="console"/> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...ugin/src/main/java/org/eclipse/kapua/broker/artemis/plugin/security/ActivateCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.broker.artemis.plugin.security; | ||
|
||
import org.eclipse.kapua.broker.artemis.plugin.security.connector.AcceptorHandler; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
/** | ||
* Class to intercept Broker lifecycle events | ||
*/ | ||
public class ActivateCallback implements org.apache.activemq.artemis.core.server.ActivateCallback { | ||
|
||
private final Logger logger = LoggerFactory.getLogger(ActivateCallback.class); | ||
|
||
private final AcceptorHandler acceptorHandler; | ||
|
||
public ActivateCallback(AcceptorHandler acceptorHandler) { | ||
this.acceptorHandler = acceptorHandler; | ||
} | ||
|
||
@Override | ||
/** | ||
* Use this callback to start Acceptors for now (but could be used to do whatever needs to have a fully running broker | ||
*/ | ||
public void activationComplete() { | ||
logger.info("Broker activation completed!"); | ||
org.apache.activemq.artemis.core.server.ActivateCallback.super.activationComplete(); | ||
logger.info("Creating acceptors..."); | ||
try { | ||
acceptorHandler.syncAcceptors(); | ||
} catch (Exception e) { | ||
logger.error("Creating acceptors... ERROR: {}", e.getMessage(), e); | ||
//TODO throw runtime? the broker doesn't work properly if not all the acceptors are created | ||
} | ||
logger.info("Creating acceptors... DONE"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.