Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Continue fleshing things out

  • Loading branch information...
commit 67d6c92a536a7aafee20d70c6f52ab2be7749384 1 parent b225eee
Howard M. Lewis Ship authored
18  tapx-jms-core/src/main/java/com/howardlewisship/tapx/jms/core/JMSDispatcher.java
... ...
@@ -0,0 +1,18 @@
  1
+// Copyright 2011 Howard M. Lewis Ship
  2
+//
  3
+// Licensed under the Apache License, Version 2.0 (the "License");
  4
+// you may not use this file except in compliance with the License.
  5
+// You may obtain a copy of the License at
  6
+//
  7
+// http://www.apache.org/licenses/LICENSE-2.0
  8
+//
  9
+// Unless required by applicable law or agreed to in writing, software
  10
+// distributed under the License is distributed on an "AS IS" BASIS,
  11
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12
+// See the License for the specific language governing permissions and
  13
+// limitations under the License.
  14
+
  15
+package com.howardlewisship.tapx.jms.core;
  16
+
  17
+public interface JMSDispatcher {
  18
+}
43  tapx-jms-core/src/main/java/com/howardlewisship/tapx/jms/core/JMSEndpoint.java
... ...
@@ -0,0 +1,43 @@
  1
+// Copyright 2011 Howard M. Lewis Ship
  2
+//
  3
+// Licensed under the Apache License, Version 2.0 (the "License");
  4
+// you may not use this file except in compliance with the License.
  5
+// You may obtain a copy of the License at
  6
+//
  7
+// http://www.apache.org/licenses/LICENSE-2.0
  8
+//
  9
+// Unless required by applicable law or agreed to in writing, software
  10
+// distributed under the License is distributed on an "AS IS" BASIS,
  11
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12
+// See the License for the specific language governing permissions and
  13
+// limitations under the License.
  14
+
  15
+package com.howardlewisship.tapx.jms.core;
  16
+
  17
+
  18
+import org.apache.tapestry5.ioc.annotations.AnnotationUseContext;
  19
+import org.apache.tapestry5.ioc.annotations.UseWith;
  20
+
  21
+import java.lang.annotation.Documented;
  22
+import java.lang.annotation.ElementType;
  23
+import java.lang.annotation.Retention;
  24
+import java.lang.annotation.Target;
  25
+
  26
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
  27
+
  28
+/**
  29
+ * Method annotation used to identify service methods that should be looped through a JMS queue.
  30
+ * Methods should only be applied to methods that are void, have no checked exceptions, and whose parameters
  31
+ * can all be reasonably encoded as JSON.
  32
+ */
  33
+@Target(ElementType.METHOD)
  34
+@Retention(RUNTIME)
  35
+@Documented
  36
+@UseWith(AnnotationUseContext.SERVICE)
  37
+public @interface JMSEndpoint {
  38
+    /**
  39
+     * The queue attribute defines the name of the underlying JMS queue. The default is blank,
  40
+     * in which ase a queue name is assigned based on the service interface name and method name.
  41
+     */
  42
+    String queue() default "";
  43
+}

0 notes on commit 67d6c92

Please sign in to comment.
Something went wrong with that request. Please try again.