this closes #216 on artemis rename

This commit is contained in:
Clebert Suconic 2015-04-30 13:14:02 -04:00
commit 63a857d18d
42 changed files with 249 additions and 240 deletions

View File

@ -10,7 +10,7 @@ Things to do before issuing a new release:
* Update the README to include appropriate release notes.
* Bump the version numbers in example and test poms to the next release version. e.g. 6.0.0
* Bump the version numbers in example and test poms to the next release version. e.g. 2.0.0
* Build the release locally: mvn clean install -DskipLicenseCheck=false -Prelease

View File

@ -186,8 +186,8 @@ public final class ActiveMQDefaultConfiguration
// true means that the management API is available via JMX
private static boolean DEFAULT_JMX_MANAGEMENT_ENABLED = true;
// the JMX domain used to registered ActiveMQ MBeans in the MBeanServer
private static String DEFAULT_JMX_DOMAIN = "org.apache.activemq";
// the JMX domain used to registered ActiveMQ Artemis MBeans in the MBeanServer
private static String DEFAULT_JMX_DOMAIN = "org.apache.activemq.artemis";
// true means that message counters are enabled
private static boolean DEFAULT_MESSAGE_COUNTER_ENABLED = false;

View File

@ -779,7 +779,7 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
}
/* (non-Javadoc)
* @see org.apache.activemq.jms.server.JMSServerManager#removeTopicFromBindings(java.lang.String, java.lang.String)
* @see org.apache.activemq.artemis.jms.server.JMSServerManager#removeTopicFromBindings(java.lang.String, java.lang.String)
*/
public boolean removeTopicFromBindingRegistry(final String name) throws Exception
{

View File

@ -28,7 +28,7 @@ import org.apache.activemq.artemis.core.server.ActiveMQComponent;
* <p>
* Notice also that even on the callback methods it's possible to pass the sync mode. That will only
* make sense on the NIO operations.
* @see org.apache.activemq.utils.IDGenerator
* @see org.apache.activemq.artemis.utils.IDGenerator
*/
public interface Journal extends ActiveMQComponent
{

View File

@ -37,7 +37,7 @@ if you are missing any dependencies, autoconf would tell you what you're missing
COMPILED FILE
The produced file will be under the ./target/nar (example: ./target/nar/artemis-native-6.0.0-amd64-Linux-gpp-jni/lib/amd64-Linux-gpp/jni/libartemis-native-6.0.0.so)
The produced file will be under the ./target/nar (example: ./target/nar/artemis-native-1.0.0-amd64-Linux-gpp-jni/lib/amd64-Linux-gpp/jni/libartemis-native-1.0.0.so)
and you will have to rename it manually under ./bin following the appropriate pattern.

View File

@ -154,10 +154,17 @@ public class MinimalServer
}
public synchronized void stop()
{
if (serverChannelGroup != null)
{
serverChannelGroup.close().awaitUninterruptibly();
}
if (channelGroup != null)
{
ChannelGroupFuture future = channelGroup.close().awaitUninterruptibly();
}
}
public static void main(String[] arg)

View File

@ -546,7 +546,13 @@ public class NettyAcceptor implements Acceptor
// serverChannelGroup has been unbound in pause()
if (serverChannelGroup != null)
{
serverChannelGroup.close().awaitUninterruptibly();
}
if (channelGroup != null)
{
ChannelGroupFuture future = channelGroup.close().awaitUninterruptibly();
if (!future.isSuccess())
@ -562,6 +568,7 @@ public class NettyAcceptor implements Acceptor
}
}
}
}
// Shutdown the EventLoopGroup if no new task was added for 100ms or if
// 3000ms elapsed.
@ -617,6 +624,8 @@ public class NettyAcceptor implements Acceptor
}
// We *pause* the acceptor so no new connections are made
if (serverChannelGroup != null)
{
ChannelGroupFuture future = serverChannelGroup.close().awaitUninterruptibly();
if (!future.isSuccess())
{
@ -631,6 +640,7 @@ public class NettyAcceptor implements Acceptor
}
}
}
}
paused = true;
}

View File

@ -68,7 +68,7 @@
<address>jms.topic.priceUpdates</address>
<forwarding-address>jms.queue.priceForwarding</forwarding-address>
<filter string="office='New York'"/>
<transformer-class-name>org.apache.activemq.jms.example.AddForwardingTimeTransformer</transformer-class-name>
<transformer-class-name>org.apache.activemq.artemis.jms.example.AddForwardingTimeTransformer</transformer-class-name>
<exclusive>true</exclusive>
</divert>
</diverts>

View File

@ -31,19 +31,19 @@ import org.apache.activemq.artemis.api.core.TransportConfiguration;
* To enable this add the following to the jbossts-properties file
* <pre>
* &lt;property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.ACTIVEMQ1"
* value="org.apache.activemq.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory"/&gt;
* value="org.apache.activemq.artemis.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory"/&gt;
* </pre>
* <p>
* you'll need something like this if the ActiveMQ Server is remote
* <pre>
* &lt;property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.ACTIVEMQ2"
* value="org.apache.activemq.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost,port=61616"/&gt;
* value="org.apache.activemq.artemis.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost,port=61616"/&gt;
* </pre>
* <p>
* you'll need something like this if the ActiveMQ Server is remote and has failover configured
* <pre>
* &lt;property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.ACTIVEMQ2"
* value="org.apache.activemq.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost,port=61616;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost2,port=61617"/&gt;
* value="org.apache.activemq.artemis.jms.server.recovery.ActiveMQXAResourceRecovery;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost,port=61616;org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory,guest,guest,host=localhost2,port=61617"/&gt;
* </pre>
*/
public class ActiveMQXAResourceRecovery

View File

@ -62,14 +62,6 @@ under the License.
<foaf:lastName>Taylor</foaf:lastName>
</foaf:Person>
</developer>
<release>
<Version>
<name>6.0.0</name>
<revision>6.0.0.final</revision>
<created>2013-16-12</created>
</Version>
</release>
<license rdf:resource="" />

View File

@ -182,7 +182,7 @@
<build>
<resources>
<resource>
<directory>../activemq/src/main/resources</directory>
<directory>../artemis/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>

View File

@ -1,7 +1,7 @@
{
"title": "ActiveMQ Documentation",
"description": "ActiveMQ User Guide and Reference Documentation",
"github": "apache/activemq-6",
"title": "ActiveMQ Artemis Documentation",
"description": "ActiveMQ Artemis User Guide and Reference Documentation",
"github": "apache/activemq-artemis",
"githubHost": "https://github.com/",
"links": {
"home": "http://activemq.apache.org/",

View File

@ -807,36 +807,36 @@ The out-of-the-box policies are
A, B or D, A, B, C, D, A, B, C, D or C, D, A, B, C, D, A, B, C.
Use
`org.apache.activemq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy`
`org.apache.activemq.artemis.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy`
as the `<connection-load-balancing-policy-class-name>`.
- Random. With this policy each node is chosen randomly.
Use
`org.apache.activemq.api.core.client.loadbalance.RandomConnectionLoadBalancingPolicy`
`org.apache.activemq.artemis.api.core.client.loadbalance.RandomConnectionLoadBalancingPolicy`
as the `<connection-load-balancing-policy-class-name>`.
- Random Sticky. With this policy the first node is chosen randomly
and then re-used for subsequent connections.
Use
`org.apache.activemq.api.core.client.loadbalance.RandomStickyConnectionLoadBalancingPolicy`
`org.apache.activemq.artemis.api.core.client.loadbalance.RandomStickyConnectionLoadBalancingPolicy`
as the `<connection-load-balancing-policy-class-name>`.
- First Element. With this policy the "first" (i.e. 0th) node is
always returned.
Use
`org.apache.activemq.api.core.client.loadbalance.FirstElementConnectionLoadBalancingPolicy`
`org.apache.activemq.artemis.api.core.client.loadbalance.FirstElementConnectionLoadBalancingPolicy`
as the `<connection-load-balancing-policy-class-name>`.
You can also implement your own policy by implementing the interface
`org.apache.activemq.api.core.client.loadbalance.ConnectionLoadBalancingPolicy`
`org.apache.activemq.artemis.api.core.client.loadbalance.ConnectionLoadBalancingPolicy`
Specifying which load balancing policy to use differs whether you are
using JMS or the core API. If you don't specify a policy then the
default will be used which is
`org.apache.activemq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy`.
`org.apache.activemq.artemis.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy`.
If you're using JMS and you're using JNDI on the client to look up your
JMS connection factory instances then you can specify these parameters
@ -844,7 +844,7 @@ in the JNDI context environment in, e.g. `jndi.properties`, to specify
the load balancing policy directly:
java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory
connection.myConnectionFactory=tcp://localhost:61616?loadBalancingPolicyClassName=org.apache.activemq.api.core.client.loadbalance.RandomConnectionLoadBalancingPolicy
connection.myConnectionFactory=tcp://localhost:61616?loadBalancingPolicyClassName=org.apache.activemq.artemis.api.core.client.loadbalance.RandomConnectionLoadBalancingPolicy
The above example would instantiate a JMS connection factory that uses
the random connection load balancing policy.

View File

@ -435,7 +435,7 @@ get a mask for a password, just run the main class at org.apache.activemq.artemi
An easy way to do it is through activemq-tools-<VERSION>-jar-with-dependencies.jar since it has all the dependencies:
```sh
java -cp activemq-tools-6.0.0-jar-with-dependencies.jar org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec "your plaintext password"
java -cp artemis-tools-1.0.0-jar-with-dependencies.jar org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec "your plaintext password"
```
If you don't want to use the jar-with-dependencies, make sure the classpath is correct. You'll get something like
@ -479,7 +479,7 @@ passwords using the new defined decoder.
To use a different decoder than the built-in one, you either pick one
from existing libraries or you implement it yourself. All decoders must
implement the `org.apache.activemq.utils.SensitiveDataCodec<T>`
implement the `org.apache.activemq.artemis.utils.SensitiveDataCodec<T>`
interface:
``` java

View File

@ -46,7 +46,7 @@ with an example (this is actually from the bridge example):
<forwarding-address>jms.queue.mincing-machine</forwarding-address>
<filter-string="name='aardvark'"/>
<transformer-class-name>
org.apache.activemq.jms.example.HatColourChangeTransformer
org.apache.activemq.artemis.jms.example.HatColourChangeTransformer
</transformer-class-name>
<retry-interval>1000</retry-interval>
<ha>true</ha>

View File

@ -56,7 +56,7 @@ taken from the divert example:
<forwarding-address>jms.queue.priceForwarding</forwarding-address>
<filter string="office='New York'"/>
<transformer-class-name>
org.apache.activemq.jms.example.AddForwardingTimeTransformer
org.apache.activemq.artemis.jms.example.AddForwardingTimeTransformer
</transformer-class-name>
<exclusive>true</exclusive>
</divert>

View File

@ -63,7 +63,7 @@ duplicate message for any message in the transaction, then it will
ignore the entire transaction.
The name of the property that you set is given by the value of
`org.apache.activemq.api.core.Message.HDR_DUPLICATE_DETECTION_ID`, which
`org.apache.activemq.artemis.api.core.Message.HDR_DUPLICATE_DETECTION_ID`, which
is `_AMQ_DUPL_ID`
The value of the property can be of type `byte[]` or `SimpleString` if

View File

@ -78,7 +78,7 @@ enabled. Let's also assume that a queue and connection factory has been
defined in the `activemq-jms.xml` config file.
``` java
import org.apache.activemq.jms.server.embedded.EmbeddedJMS;
import org.apache.activemq.artemis.jms.server.embedded.EmbeddedJMS;
...
@ -129,7 +129,7 @@ config.setAcceptorConfigurations(transports);
```
You need to instantiate an instance of
`org.apache.activemq.api.core.server.embedded.EmbeddedActiveMQ` and add
`org.apache.activemq.artemis.api.core.server.embedded.EmbeddedActiveMQ` and add
the configuration object to it.
``` java

View File

@ -12,7 +12,7 @@ makes interceptors powerful, but also potentially dangerous.
An interceptor must implement the `Interceptor interface`:
``` java
package org.apache.activemq.api.core.interceptor;
package org.apache.artemis.activemq.api.core.interceptor;
public interface Interceptor
{
@ -45,13 +45,13 @@ Both incoming and outgoing interceptors are configured in
`broker.xml`:
<remoting-incoming-interceptors>
<class-name>org.apache.activemq.jms.example.LoginInterceptor</class-name>
<class-name>org.apache.activemq.jms.example.AdditionalPropertyInterceptor</class-name>
<class-name>org.apache.activemq.artemis.jms.example.LoginInterceptor</class-name>
<class-name>org.apache.activemq.artemis.jms.example.AdditionalPropertyInterceptor</class-name>
</remoting-incoming-interceptors>
<remoting-outgoing-interceptors>
<class-name>org.apache.activemq.jms.example.LogoutInterceptor</class-name>
<class-name>org.apache.activemq.jms.example.AdditionalPropertyInterceptor</class-name>
<class-name>org.apache.activemq.artemis.jms.example.LogoutInterceptor</class-name>
<class-name>org.apache.activemq.artemis.jms.example.AdditionalPropertyInterceptor</class-name>
</remoting-outgoing-interceptors>
The interceptors classes (and their dependencies) must be added to the

View File

@ -51,7 +51,7 @@ beans file that bridges 2 destinations which are actually on the same
server.
The JMS Bridge is a simple POJO so can be deployed with most frameworks,
simply instantiate the `org.apache.activemq.api.jms.bridge.impl.JMSBridgeImpl`
simply instantiate the `org.apache.activemq.artemis.api.jms.bridge.impl.JMSBridgeImpl`
class and set the appropriate parameters.
## JMS Bridge Parameters
@ -207,7 +207,7 @@ The configuration example above uses the default implementation provided
by Apache ActiveMQ Artemis that looks up the connection factory using JNDI. For other
Application Servers or JMS providers a new implementation may have to be
provided. This can easily be done by implementing the interface
`org.apache.activemq.jms.bridge.ConnectionFactoryFactory`.
`org.apache.activemq.artemis.jms.bridge.ConnectionFactoryFactory`.
## Source and Target Destination Factories
@ -218,7 +218,7 @@ In the configuration example above, we have used the default provided by
Apache ActiveMQ Artemis that looks up the destination using JNDI.
A new implementation can be provided by implementing
`org.apache.activemq.jms.bridge.DestinationFactory` interface.
`org.apache.activemq.artemis.jms.bridge.DestinationFactory` interface.
## Quality Of Service

View File

@ -182,7 +182,7 @@ which are also available through JMS by the use of object properties.
</tbody>
</table>
: org.apache.activemq.api.core.client.ClientMessage API
: org.apache.activemq.artemis.api.core.client.ClientMessage API
To set the output stream when receiving a core message:

View File

@ -72,7 +72,7 @@ script `compile-native.sh`. This script will invoke the proper maven profile to
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ActiveMQ Artemis Native POM 6.0.0
[INFO] Building ActiveMQ Artemis Native POM 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- nar-maven-plugin:3.0.0:nar-validate (default-nar-validate) @ artemis-native ---

View File

@ -62,7 +62,7 @@ add the following dependencies.
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core-client</artifactId>
<version>6.0.0</version>
<version>1.0.0.Final</version>
</dependency>
There are 2 properties you need to set when starting your java program,

View File

@ -36,10 +36,10 @@ what can be invoked for this type of resource.
Apache ActiveMQ Artemis exposes its managed resources in 2 packages:
- *Core* resources are located in the
`org.apache.activemq.api.core.management` package
`org.apache.activemq.artemis.api.core.management` package
- *JMS* resources are located in the
`org.apache.activemq.api.jms.management` package
`org.apache.activemq.artemis.api.jms.management` package
The way to invoke a *management operations* depends whether JMX, core
messages, or JMS messages are used.
@ -66,7 +66,7 @@ full details of the API please consult the javadoc. In summary:
Core queues can be created or destroyed using the management
operations `createQueue()` or `deployQueue()` or `destroyQueue()`)on
the `ActiveMQServerControl` (with the ObjectName
`org.apache.activemq:module=Core,type=Server` or the resource name
`org.apache.activemq.artemis:module=Core,type=Server` or the resource name
`core.server`)
`createQueue` will fail if the queue already exists while
@ -126,14 +126,14 @@ full details of the API please consult the javadoc. In summary:
management operations `createBridge()` and `destroyBridge()` (resp.
`createDivert()` and `destroyDivert()`) on the
`ActiveMQServerControl` (with the ObjectName
`org.apache.activemq:module=Core,type=Server` or the resource name
`org.apache.activemq.artemis:module=Core,type=Server` or the resource name
`core.server`).
- It is possible to stop the server and force failover to occur with
any currently attached clients.
to do this use the `forceFailover()` on the `ActiveMQServerControl`
(with the ObjectName `org.apache.activemq:module=Core,type=Server`
(with the ObjectName `org.apache.activemq.artemis:module=Core,type=Server`
or the resource name `core.server`)
> **Note**
@ -145,7 +145,7 @@ full details of the API please consult the javadoc. In summary:
#### Core Address Management
Core addresses can be managed using the `AddressControl` class (with the
ObjectName `org.apache.activemq:module=Core,type=Address,name="<the
ObjectName `org.apache.activemq.artemis:module=Core,type=Address,name="<the
address name>"` or the resource name
`core.address.<the
address name>`).
@ -161,7 +161,7 @@ ObjectName `org.apache.activemq:module=Core,type=Address,name="<the
The bulk of the core management API deals with core queues. The
`QueueControl` class defines the Core queue management operations (with
the ObjectName
`org.apache.activemq:module=Core,type=Queue,address="<the bound
`org.apache.activemq.artemis:module=Core,type=Queue,address="<the bound
address>",name="<the queue name>"` or the resource
name `core.queue.<the queue name>`).
@ -245,7 +245,7 @@ transactions). These resources are:
They can be started or stopped using the `start()` or. `stop()`
method on the `AcceptorControl` class (with the ObjectName
`org.apache.activemq:module=Core,type=Acceptor,name="<the acceptor name>"`
`org.apache.activemq.artemis:module=Core,type=Acceptor,name="<the acceptor name>"`
or the resource name
`core.acceptor.<the address name>`). The acceptors parameters
can be retrieved using the `AcceptorControl` attributes (see [Understanding Acceptors](configuring-transports.md))
@ -254,7 +254,7 @@ transactions). These resources are:
They can be started or stopped using the `start()` or `stop()`
method on the `DivertControl` class (with the ObjectName
`org.apache.activemq:module=Core,type=Divert,name=<the divert name>`
`org.apache.activemq.artemis:module=Core,type=Divert,name=<the divert name>`
or the resource name `core.divert.<the divert name>`). Diverts
parameters can be retrieved using the `DivertControl` attributes
(see [Diverting and Splitting Message Flows)](diverts.md))
@ -263,7 +263,7 @@ transactions). These resources are:
They can be started or stopped using the `start()` (resp. `stop()`)
method on the `BridgeControl` class (with the ObjectName
`org.apache.activemq:module=Core,type=Bridge,name="<the bridge name>"`
`org.apache.activemq.artemis:module=Core,type=Bridge,name="<the bridge name>"`
or the resource name
`core.bridge.<the bridge name>`). Bridges parameters can be retrieved
using the `BridgeControl` attributes (see [Core bridges](core-bridges.md))
@ -272,7 +272,7 @@ transactions). These resources are:
They can be started or stopped using the `start()` or `stop()`
method on the `BroadcastGroupControl` class (with the ObjectName
`org.apache.activemq:module=Core,type=BroadcastGroup,name="<the broadcast group name>"` or the resource name
`org.apache.activemq.artemis:module=Core,type=BroadcastGroup,name="<the broadcast group name>"` or the resource name
`core.broadcastgroup.<the broadcast group name>`). Broadcast groups
parameters can be retrieved using the `BroadcastGroupControl`
attributes (see [Clusters](clusters.md))
@ -281,7 +281,7 @@ transactions). These resources are:
They can be started or stopped using the `start()` or `stop()`
method on the `DiscoveryGroupControl` class (with the ObjectName
`org.apache.activemq:module=Core,type=DiscoveryGroup,name="<the discovery group name>"` or the resource name
`org.apache.activemq.artemis:module=Core,type=DiscoveryGroup,name="<the discovery group name>"` or the resource name
`core.discovery.<the discovery group name>`). Discovery groups
parameters can be retrieved using the `DiscoveryGroupControl`
attributes (see [Clusters](clusters.md))
@ -290,7 +290,7 @@ transactions). These resources are:
They can be started or stopped using the `start()` or `stop()`
method on the `ClusterConnectionControl` class (with the ObjectName
`org.apache.activemq:module=Core,type=ClusterConnection,name="<the cluster connection name>"` or the resource name
`org.apache.activemq.artemis:module=Core,type=ClusterConnection,name="<the cluster connection name>"` or the resource name
`core.clusterconnection.<the cluster connection name>`). Cluster
connections parameters can be retrieved using the
`ClusterConnectionControl` attributes (see [Clusters](clusters.md))
@ -304,7 +304,7 @@ objects* (i.e. JMS queues, topics and connection factories).
JMS Resources (connection factories and destinations) can be created
using the `JMSServerControl` class (with the ObjectName
`org.apache.activemq:module=JMS,type=Server` or the resource name
`org.apache.activemq.artemis:module=JMS,type=Server` or the resource name
`jms.server`).
- Listing, creating, destroying connection factories
@ -359,7 +359,7 @@ using the `JMSServerControl` class (with the ObjectName
JMS Connection Factories can be managed using the
`ConnectionFactoryControl` class (with the ObjectName
`org.apache.activemq:module=JMS,type=ConnectionFactory,name="<the connection factory
`org.apache.activemq.artemis:module=JMS,type=ConnectionFactory,name="<the connection factory
name>"` or the resource name
`jms.connectionfactory.<the
connection factory name>`).
@ -376,7 +376,7 @@ JMS Connection Factories can be managed using the
#### JMS Queue Management
JMS queues can be managed using the `JMSQueueControl` class (with the
ObjectName `org.apache.activemq:module=JMS,type=Queue,name="<the queue
ObjectName `org.apache.activemq.artemis:module=JMS,type=Queue,name="<the queue
name>"` or the resource name `jms.queue.<the queue
name>`).
@ -449,7 +449,7 @@ operations on a core queue.*
#### JMS Topic Management
JMS Topics can be managed using the `TopicControl` class (with the
ObjectName `org.apache.activemq:module=JMS,type=Topic,name="<the topic
ObjectName `org.apache.activemq.artemis:module=JMS,type=Topic,name="<the topic
name>"` or the resource name `jms.topic.<the topic
name>`).
@ -485,14 +485,14 @@ Apache ActiveMQ Artemis registers its resources with the domain `org.apache.acti
For example, the `ObjectName` to manage a JMS Queue `exampleQueue` is:
org.apache.activemq:module=JMS,type=Queue,name="exampleQueue"
org.apache.activemq.artemis:module=JMS,type=Queue,name="exampleQueue"
and the MBean is:
org.apache.activemq.api.jms.management.JMSQueueControl
org.apache.activemq.artemis.api.jms.management.JMSQueueControl
The MBean's `ObjectName` are built using the helper class
`org.apache.activemq.api.core.management.ObjectNameBuilder`. You can
`org.apache.activemq.artemis.api.core.management.ObjectNameBuilder`. You can
also use `jconsole` to find the `ObjectName` of the MBeans you want to
manage.
@ -519,7 +519,7 @@ If JMX is enabled, Apache ActiveMQ Artemis can be managed locally using `jconsol
> to configure the server for remote management (system properties must
> be set in `run.sh` or `run.bat` scripts).
By default, Apache ActiveMQ Artemis server uses the JMX domain "org.apache.activemq".
By default, Apache ActiveMQ Artemis server uses the JMX domain "org.apache.activemq.artemis".
To manage several Apache ActiveMQ Artemis servers from the *same* MBeanServer, the JMX
domain can be configured for each individual Apache ActiveMQ Artemis server by setting
`jmx-domain` in `broker.xml`:
@ -545,11 +545,11 @@ http agent deployed as a Web Application. Jolokia is a remote
JMX over HTTP bridge that exposed mBeans, for a full guids as
to how to use refer to [Jolokia Documentation](http://www.jolokia.org/documentation.html),
however a simple example to query thebrokers version would
be to use a brower and go to the URL http://localhost:8161/jolokia/read/org.apache.activemq:module=Core,type=Server/Version.
be to use a brower and go to the URL http://localhost:8161/jolokia/read/org.apache.activemq.artemis:module=Core,type=Server/Version.
This would give you back something like the following:
{"timestamp":1422019706,"status":200,"request":{"mbean":"org.apache.activemq:module=Core,type=Server","attribute":"Version","type":"read"},"value":"6.0.0.SNAPSHOT (Active Hornet, 126)"}
{"timestamp":1422019706,"status":200,"request":{"mbean":"org.apache.activemq.artemis:module=Core,type=Server","attribute":"Version","type":"read"},"value":"1.0.0.SNAPSHOT (Active Hornet, 126)"}
## Using Management Via Core API
@ -576,7 +576,7 @@ A `ClientConsumer` can be used to consume the management reply and
retrieve the result of the operation (if any) stored in the reply's
body. For portability, results are returned as a [JSON](http://json.org)
String rather than Java Serialization (the
`org.apache.activemq.api.core.management.ManagementHelper` can be used
`org.apache.activemq.artemis.api.core.management.ManagementHelper` can be used
to convert the JSON string to Java objects).
These steps can be simplified to make it easier to invoke management
@ -588,13 +588,13 @@ operations using Core messages:
2. Create a `ClientMessage`
3. Use the helper class
`org.apache.activemq.api.core.management.ManagementHelper` to fill
`org.apache.activemq.artemis.api.core.management.ManagementHelper` to fill
the message with the management properties
4. Send the message using the `ClientRequestor`
5. Use the helper class
`org.apache.activemq.api.core.management.ManagementHelper` to
`org.apache.activemq.artemis.api.core.management.ManagementHelper` to
retrieve the operation result from the management reply
For example, to find out the number of messages in the core queue
@ -615,7 +615,7 @@ Management operation name and parameters must conform to the Java
interfaces defined in the `management` packages.
Names of the resources are built using the helper class
`org.apache.activemq.api.core.management.ResourceNames` and are
`org.apache.activemq.artemis.api.core.management.ResourceNames` and are
straightforward (`core.queue.exampleQueue` for the Core Queue
`exampleQueue`, `jms.topic.exampleTopic` for the JMS Topic
`exampleTopic`, etc.).
@ -662,13 +662,13 @@ API instead:
2. create a `Message`
3. use the helper class
`org.apache.activemq.api.jms.management.JMSManagementHelper` to fill
`org.apache.activemq.artemis.api.jms.management.JMSManagementHelper` to fill
the message with the management properties
4. send the message using the `QueueRequestor`
5. use the helper class
`org.apache.activemq.api.jms.management.JMSManagementHelper` to
`org.apache.activemq.artemis.api.jms.management.JMSManagementHelper` to
retrieve the operation result from the management reply
For example, to know the number of messages in the JMS queue
@ -714,10 +714,10 @@ These notifications can be received by 3 different ways:
If JMX is enabled (see Configuring JMX section), JMX notifications can be received by
subscribing to 2 MBeans:
- `org.apache.activemq:module=Core,type=Server` for notifications on
- `org.apache.activemq.artemis:module=Core,type=Server` for notifications on
*Core* resources
- `org.apache.activemq:module=JMS,type=Server` for notifications on
- `org.apache.activemq.artemis:module=JMS,type=Server` for notifications on
*JMS* resources
### Core Messages Notifications

View File

@ -20,10 +20,10 @@ page:<http://activemq.apache.org/download.html>
- Follow us on [twitter](https://twitter.com/activemq)
- Apache ActiveMQ Artemis Git repository is <https://github.com/apache/activemq-6>
- Apache ActiveMQ Artemis Git repository is <https://github.com/apache/activemq-artemis>
- All release tags are available from
<https://github.com/apache/activemq-6/releases>
<https://github.com/apache/activemq-artemis/releases>
And many thanks to all our contributors, both old and new who helped

View File

@ -65,7 +65,7 @@ which are.
Queues can also be created using the core API or the management API.
For the core API, queues can be created via the
`org.apache.activemq.api.core.client.ClientSession` interface. There are
`org.apache.activemq.artemis.api.core.client.ClientSession` interface. There are
multiple `createQueue` methods that support setting all of the
previously mentioned attributes. There is one extra attribute that can
be set via this API which is `temporary`. setting this to true means

View File

@ -103,7 +103,7 @@ Within your WEB-INF/lib directory you must have the Apache ActiveMQ Artemis-rest
<dependency>
<groupId>org.apache.activemq.rest</groupId>
<artifactId>activemq-rest</artifactId>
<version>6.0.0.Final</version>
<version>1.0.0.Final</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
@ -179,7 +179,7 @@ Here's a Maven pom.xml file for creating a WAR for this environment. Make sure y
<dependency>
<groupId>org.apache.activemq.rest</groupId>
<artifactId>activemq-rest</artifactId>
<version>6.0.0.Final</version>
<version>1.0.0.Final</version>
</dependency>
</dependencies>
</project>

View File

@ -126,7 +126,7 @@ session factory. Please see [Client Reconnection and Session Reattachment](clien
# Asynchronous Send Acknowledgements
To use the feature using the core API, you implement the interface
`org.apache.activemq.api.core.client.SendAcknowledgementHandler` and set
`org.apache.activemq.artemis.api.core.client.SendAcknowledgementHandler` and set
a handler instance on your `ClientSession`.
Then, you just send messages as normal using your `ClientSession`, and

View File

@ -22,14 +22,14 @@ under the License.
<Match>
<!-- Having str restored to null is fine for our purposes -->
<Class name="org.apache.activemq.api.core.SimpleString"/>
<Class name="org.apache.activemq.artemis.api.core.SimpleString"/>
<Field name="str"/>
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED"/>
</Match>
<Match>
<!-- The whole point of SimpleString is to expose this data without any performance penalty -->
<Class name="org.apache.activemq.api.core.SimpleString"/>
<Class name="org.apache.activemq.artemis.api.core.SimpleString"/>
<method name="getData"/>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>
@ -91,7 +91,7 @@ under the License.
so methods are passed null arguments to trigger the exact same exceptions.
-->
<Class name="org.apache.activemq.utils.TypedProperties"/>
<Class name="org.apache.activemq.artemis.utils.TypedProperties"/>
<Or>
<Method name="getFloatProperty"/>
<Method name="getDoubleProperty"/>

12
pom.xml
View File

@ -105,10 +105,10 @@
</properties>
<scm>
<connection>scm:git:http://git-wip-us.apache.org/repos/asf/activemq-6.git</connection>
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/activemq-6.git</developerConnection>
<url>https://fisheye6.atlassian.com/browse/~br=master/activemq-6-git</url>
<tag>6.0.0-SNAPSHOT</tag>
<connection>scm:git:http://git-wip-us.apache.org/repos/asf/activemq-artemis.git</connection>
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/activemq-artemis.git</developerConnection>
<url>https://fisheye6.atlassian.com/browse/~br=master/activemq-artemis-git</url>
<tag>1.0.0-SNAPSHOT</tag>
</scm>
<distributionManagement>
@ -931,9 +931,9 @@
<exclude>**/*.iml</exclude>
<exclude>**/*.jceks</exclude>
<exclude>**/*.jks</exclude>
<exclude>**/org/apache/activemq/utils/json/**</exclude>
<exclude>**/org/apache/activemq/artemis/utils/json/**</exclude>
<exclude>**/src/main/resources/META-INF/LICENSE</exclude>
<exclude>**/org/apache/activemq/utils/Base64.java</exclude>
<exclude>**/org/apache/activemq/artemis/utils/Base64.java</exclude>
</excludes>
</configuration>
<executions>

View File

@ -19,19 +19,19 @@
# Additional logger names to configure (root logger is always configured)
# Root logger option
loggers=org.jboss.logging,org.apache.activemq.core.server,org.apache.activemq.utils,org.apache.activemq.journal,org.apache.activemq.jms,org.apache.activemq.ra,org.apache.activemq.tests.unit,org.apache.activemq.tests.integration,org.apache.activemq.jms.tests
loggers=org.jboss.logging,org.apache.activemq.artemis.core.server,org.apache.activemq.artemis.utils,org.apache.activemq.artemis.journal,org.apache.activemq.artemis.jms,org.apache.activemq.artemis.ra,org.apache.activemq.artemis.tests.unit,org.apache.activemq.artemis.tests.integration,org.apache.activemq.artemis.jms.tests
# Root logger level
logger.level=INFO
# ActiveMQ logger levels
logger.org.apache.activemq.core.server.level=TRACE
logger.org.apache.activemq.journal.level=INFO
logger.org.apache.activemq.utils.level=INFO
logger.org.apache.activemq.jms.level=INFO
logger.org.apache.activemq.ra.level=INFO
logger.org.apache.activemq.tests.unit.level=INFO
logger.org.apache.activemq.tests.integration.level=INFO
logger.org.apache.activemq.jms.tests.level=INFO
logger.org.apache.activemq.artemis.core.server.level=TRACE
logger.org.apache.activemq.artemis.journal.level=INFO
logger.org.apache.activemq.artemis.utils.level=INFO
logger.org.apache.activemq.artemis.jms.level=INFO
logger.org.apache.activemq.artemis.ra.level=INFO
logger.org.apache.activemq.artemis.tests.unit.level=INFO
logger.org.apache.activemq.artemis.tests.integration.level=INFO
logger.org.apache.activemq.artemis.jms.tests.level=INFO
# Root logger handlers
logger.handlers=CONSOLE,TEST
@ -53,7 +53,7 @@ handler.FILE.fileName=target/activemq.log
handler.FILE.formatter=PATTERN
# Console handler configuration
handler.TEST=org.apache.activemq.logs.AssertionLoggerHandler
handler.TEST=org.apache.activemq.artemis.logs.AssertionLoggerHandler
handler.TEST.level=TRACE
handler.TEST.formatter=PATTERN

View File

@ -199,7 +199,7 @@ public class JmsQueueBrowserTest extends BasicOpenWireTest
}
ObjectName queueViewMBeanName = new ObjectName(
"org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=TEST");
"org.apache.activemq.artemis:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=TEST");
System.out.println("Create QueueView MBean...");
QueueViewMBean proxy = (QueueViewMBean) broker.getManagementContext()

View File

@ -1418,7 +1418,7 @@ public class MessageHeaderTest extends MessageHeaderTestBase
}
/* (non-Javadoc)
* @see ClientSession#createQueue(org.apache.activemq.utils.SimpleString, org.apache.activemq.utils.SimpleString)
* @see ClientSession#createQueue(org.apache.activemq.artemis.utils.SimpleString, org.apache.activemq.artemis.utils.SimpleString)
*/
public void createQueue(SimpleString address, SimpleString queueName) throws ActiveMQException
{

View File

@ -172,7 +172,7 @@
<!--
com.arjuna.ats.internal.jta.transaction.jts.UserTransactionImple
-->
<property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.HORNETQ" value="org.apache.activemq.api.jms.server.recovery.ActiveMQXAResourceRecovery;adaptor1"/>
<property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.HORNETQ" value="org.apache.activemq.artemis.api.jms.server.recovery.ActiveMQXAResourceRecovery;adaptor1"/>

View File

@ -20,7 +20,7 @@
##
jms.provider.admin.class=org.apache.activemq.artemis.jms.ActiveMQAdmin
#jms.provider.admin.class = org.apache.activemq.api.jms.GenericAdmin
#jms.provider.admin.class = org.apache.activemq.artemis.api.jms.GenericAdmin
#jms.provider.admin.class = org.objectweb.jtests.providers.admin.JoramAdmin
#jms.provider.admin.class = org.objectweb.jtests.providers.admin.AshnaMQAdmin
#jms.provider.admin.class = org.objectweb.jtests.providers.admin.FioranoMQAdmin

View File

@ -76,7 +76,7 @@ public class TimedBufferTest extends UnitTestCase
}
/* (non-Javadoc)
* @see org.apache.activemq.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
* @see org.apache.activemq.artemis.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
*/
public ByteBuffer newBuffer(final int minSize, final int maxSize)
{
@ -151,7 +151,7 @@ public class TimedBufferTest extends UnitTestCase
}
/* (non-Javadoc)
* @see org.apache.activemq.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
* @see org.apache.activemq.artemis.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
*/
public ByteBuffer newBuffer(final int minSize, final int maxSize)
{
@ -240,7 +240,7 @@ public class TimedBufferTest extends UnitTestCase
}
/* (non-Javadoc)
* @see org.apache.activemq.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
* @see org.apache.activemq.artemis.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
*/
public ByteBuffer newBuffer(final int minSize, final int maxSize)
{
@ -326,7 +326,7 @@ public class TimedBufferTest extends UnitTestCase
}
/* (non-Javadoc)
* @see org.apache.activemq.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
* @see org.apache.activemq.artemis.utils.timedbuffer.TimedBufferObserver#newBuffer(int, int)
*/
public ByteBuffer newBuffer(final int minSize, final int maxSize)
{

View File

@ -133,7 +133,7 @@ public class SoftValueMapTest extends UnitTestCase
}
/* (non-Javadoc)
* @see org.apache.activemq.utils.SoftValueHashMap.ValueCache#isLive()
* @see org.apache.activemq.artemis.utils.SoftValueHashMap.ValueCache#isLive()
*/
public boolean isLive()
{