public EndpointConsumer(com.sun.messaging.jms.ra.ResourceAdapter ra,
MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
throws NotSupportedException {
if (ra == null || endpointFactory == null || spec ==null){
throw new NotSupportedException("MQRA:EC:const:null RA||EPF||AS");
}
if (!(spec instanceof com.sun.messaging.jms.ra.ActivationSpec)) {
throw new NotSupportedException("MQRA:EC:const:" +
"Unsupported ActivationSpec Class-" +
spec.getClass());
}
this.aSpec = (ActivationSpec)spec;
this.endpointFactory = endpointFactory;