提交 9c1dc747 编写于 作者: Y yukon

Add oms mudle to build config and add some unsupported hints.

上级 28a6deac
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
<useAllReactorProjects>true</useAllReactorProjects> <useAllReactorProjects>true</useAllReactorProjects>
<includes> <includes>
<include>org.apache.rocketmq:rocketmq-client</include> <include>org.apache.rocketmq:rocketmq-client</include>
<include>org.apache.rocketmq:rocketmq-openmessaging</include>
</includes> </includes>
<binaries> <binaries>
<outputDirectory>./</outputDirectory> <outputDirectory>./</outputDirectory>
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
<include>org.apache.rocketmq:rocketmq-namesrv</include> <include>org.apache.rocketmq:rocketmq-namesrv</include>
<include>org.apache.rocketmq:rocketmq-filtersrv</include> <include>org.apache.rocketmq:rocketmq-filtersrv</include>
<include>org.apache.rocketmq:rocketmq-example</include> <include>org.apache.rocketmq:rocketmq-example</include>
<include>org.apache.rocketmq:rocketmq-openmessaging</include>
</includes> </includes>
<binaries> <binaries>
<outputDirectory>lib/</outputDirectory> <outputDirectory>lib/</outputDirectory>
......
...@@ -38,11 +38,5 @@ ...@@ -38,11 +38,5 @@
<groupId>org.apache.rocketmq</groupId> <groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-client</artifactId> <artifactId>rocketmq-client</artifactId>
</dependency> </dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>javax.jms-api</artifactId>
<version>2.0.1</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
...@@ -87,37 +87,37 @@ public class MessagingAccessPointImpl implements MessagingAccessPoint { ...@@ -87,37 +87,37 @@ public class MessagingAccessPointImpl implements MessagingAccessPoint {
@Override @Override
public IterableConsumer createIterableConsumer(String queueName) { public IterableConsumer createIterableConsumer(String queueName) {
throw new OMSNotSupportedException("-1", "IterableConsumer is not supported in RocketMQ"); throw new OMSNotSupportedException("-1", "IterableConsumer is not supported in current version");
} }
@Override @Override
public IterableConsumer createIterableConsumer(String queueName, KeyValue properties) { public IterableConsumer createIterableConsumer(String queueName, KeyValue properties) {
throw new OMSNotSupportedException("-1", "IterableConsumer is not supported in RocketMQ"); throw new OMSNotSupportedException("-1", "IterableConsumer is not supported in current version");
} }
@Override @Override
public ResourceManager getResourceManager() { public ResourceManager getResourceManager() {
return null; throw new OMSNotSupportedException("-1", "ResourceManager is not supported in current version.");
} }
@Override @Override
public ServiceEndPoint createServiceEndPoint() { public ServiceEndPoint createServiceEndPoint() {
return null; throw new OMSNotSupportedException("-1", "ServiceEndPoint is not supported in current version.");
} }
@Override @Override
public ServiceEndPoint createServiceEndPoint(KeyValue properties) { public ServiceEndPoint createServiceEndPoint(KeyValue properties) {
return null; throw new OMSNotSupportedException("-1", "ServiceEndPoint is not supported in current version.");
} }
@Override @Override
public void addObserver(Observer observer) { public void addObserver(Observer observer) {
//Ignore
} }
@Override @Override
public void deleteObserver(Observer observer) { public void deleteObserver(Observer observer) {
//Ignore
} }
@Override @Override
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package io.openmessaging.rocketmq; package io.openmessaging.rocketmq.config;
import io.openmessaging.PropertyKeys; import io.openmessaging.PropertyKeys;
import io.openmessaging.rocketmq.domain.NonStandardKeys; import io.openmessaging.rocketmq.domain.NonStandardKeys;
......
...@@ -19,7 +19,7 @@ package io.openmessaging.rocketmq.consumer; ...@@ -19,7 +19,7 @@ package io.openmessaging.rocketmq.consumer;
import io.openmessaging.KeyValue; import io.openmessaging.KeyValue;
import io.openmessaging.PropertyKeys; import io.openmessaging.PropertyKeys;
import io.openmessaging.ServiceLifecycle; import io.openmessaging.ServiceLifecycle;
import io.openmessaging.rocketmq.ClientConfig; import io.openmessaging.rocketmq.config.ClientConfig;
import io.openmessaging.rocketmq.domain.ConsumeRequest; import io.openmessaging.rocketmq.domain.ConsumeRequest;
import java.util.Collections; import java.util.Collections;
import java.util.Map; import java.util.Map;
......
...@@ -21,7 +21,7 @@ import io.openmessaging.Message; ...@@ -21,7 +21,7 @@ import io.openmessaging.Message;
import io.openmessaging.PropertyKeys; import io.openmessaging.PropertyKeys;
import io.openmessaging.PullConsumer; import io.openmessaging.PullConsumer;
import io.openmessaging.exception.OMSRuntimeException; import io.openmessaging.exception.OMSRuntimeException;
import io.openmessaging.rocketmq.ClientConfig; import io.openmessaging.rocketmq.config.ClientConfig;
import io.openmessaging.rocketmq.domain.ConsumeRequest; import io.openmessaging.rocketmq.domain.ConsumeRequest;
import io.openmessaging.rocketmq.utils.BeanUtils; import io.openmessaging.rocketmq.utils.BeanUtils;
import io.openmessaging.rocketmq.utils.OMSUtil; import io.openmessaging.rocketmq.utils.OMSUtil;
......
...@@ -24,7 +24,7 @@ import io.openmessaging.PropertyKeys; ...@@ -24,7 +24,7 @@ import io.openmessaging.PropertyKeys;
import io.openmessaging.PushConsumer; import io.openmessaging.PushConsumer;
import io.openmessaging.ReceivedMessageContext; import io.openmessaging.ReceivedMessageContext;
import io.openmessaging.exception.OMSRuntimeException; import io.openmessaging.exception.OMSRuntimeException;
import io.openmessaging.rocketmq.ClientConfig; import io.openmessaging.rocketmq.config.ClientConfig;
import io.openmessaging.rocketmq.utils.BeanUtils; import io.openmessaging.rocketmq.utils.BeanUtils;
import io.openmessaging.rocketmq.utils.OMSUtil; import io.openmessaging.rocketmq.utils.OMSUtil;
import io.openmessaging.rocketmq.domain.NonStandardKeys; import io.openmessaging.rocketmq.domain.NonStandardKeys;
......
...@@ -27,7 +27,7 @@ import io.openmessaging.exception.OMSMessageFormatException; ...@@ -27,7 +27,7 @@ import io.openmessaging.exception.OMSMessageFormatException;
import io.openmessaging.exception.OMSNotSupportedException; import io.openmessaging.exception.OMSNotSupportedException;
import io.openmessaging.exception.OMSRuntimeException; import io.openmessaging.exception.OMSRuntimeException;
import io.openmessaging.exception.OMSTimeOutException; import io.openmessaging.exception.OMSTimeOutException;
import io.openmessaging.rocketmq.ClientConfig; import io.openmessaging.rocketmq.config.ClientConfig;
import io.openmessaging.rocketmq.domain.BytesMessageImpl; import io.openmessaging.rocketmq.domain.BytesMessageImpl;
import io.openmessaging.rocketmq.utils.BeanUtils; import io.openmessaging.rocketmq.utils.BeanUtils;
import org.apache.rocketmq.client.exception.MQBrokerException; import org.apache.rocketmq.client.exception.MQBrokerException;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册