Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
@Target(TYPE)
public @interface JMSConnectionFactoryDefinition {
String name();

Expand All @@ -47,4 +47,8 @@
int maxPoolSize() default -1;

int minPoolSize() default -1;

String description() default "";

String interfaceName() default "";
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
@Target(TYPE)
public @interface JMSConnectionFactoryDefinitions {
JMSConnectionFactoryDefinition[] value();
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
@Target(TYPE)
public @interface JMSDestinationDefinition {
String interfaceName();

Expand All @@ -39,4 +39,6 @@
String destinationName() default "";

String[] properties() default {};

String description() default "";
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
@Target(TYPE)
public @interface JMSDestinationDefinitions {
JMSConnectionFactoryDefinition[] value();
JMSDestinationDefinition[] value();
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface MessageConsumer {
public interface MessageConsumer extends AutoCloseable {
String getMessageSelector() throws JMSException;

MessageListener getMessageListener() throws JMSException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface MessageProducer {
public interface MessageProducer extends AutoCloseable {
void setDisableMessageID(boolean value) throws JMSException;

boolean getDisableMessageID() throws JMSException;
Expand Down
2 changes: 1 addition & 1 deletion geronimo-jms_2.0_spec/src/main/java/javax/jms/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Session extends Runnable {
public interface Session extends Runnable, AutoCloseable {
static final int AUTO_ACKNOWLEDGE = 1;

static final int CLIENT_ACKNOWLEDGE = 2;
Expand Down