Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » jms » [javadoc | source]
    1   /*
    2    * JBoss, Home of Professional Open Source.
    3    * Copyright 2006, Red Hat Middleware LLC, and individual contributors
    4    * as indicated by the @author tags. See the copyright.txt file in the
    5    * distribution for a full listing of individual contributors.
    6    *
    7    * This is free software; you can redistribute it and/or modify it
    8    * under the terms of the GNU Lesser General Public License as
    9    * published by the Free Software Foundation; either version 2.1 of
   10    * the License, or (at your option) any later version.
   11    *
   12    * This software is distributed in the hope that it will be useful,
   13    * but WITHOUT ANY WARRANTY; without even the implied warranty of
   14    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   15    * Lesser General Public License for more details.
   16    *
   17    * You should have received a copy of the GNU Lesser General Public
   18    * License along with this software; if not, write to the Free
   19    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
   20    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
   21    */
   22   package org.jboss.ejb.plugins.jms;
   23   
   24   import java.util.ArrayList;
   25   
   26   import javax.jms.MessageListener;
   27   import javax.resource.spi.endpoint.MessageEndpoint;
   28   
   29   import org.jboss.deployment.DeploymentException;
   30   import org.jboss.ejb.EJBProxyFactory;
   31   import org.jboss.ejb.plugins.inflow.JBossJMSMessageEndpointFactory;
   32   import org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor;
   33   import org.jboss.invocation.InvokerInterceptor;
   34   import org.jboss.metadata.MessageDrivenMetaData;
   35   import org.jboss.proxy.ClientMethodInterceptor;
   36   import org.jboss.proxy.TransactionInterceptor;
   37   
   38   /**
   39    * EJBProxyFactory for JMS MessageDrivenBeans
   40    * 
   41    * @author <a href="mailto:peter.antman@tim.se">Peter Antman</a> .
   42    * @author <a href="mailto:rickard.oberg@telkel.com">Rickard Oberg</a>
   43    * @author <a href="mailto:sebastien.alborini@m4x.org">Sebastien Alborini</a>
   44    * @author <a href="mailto:marc.fleury@telkel.com">Marc Fleury</a>
   45    * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
   46    * @author <a href="mailto:adrian@jboss.com">Adrian Brock</a>
   47    * @version <tt>$Revision: 66023 $</tt>
   48    */
   49   public class JMSContainerInvoker extends JBossJMSMessageEndpointFactory
   50      implements EJBProxyFactory, JMSContainerInvokerMBean
   51   {
   52      protected void setupProxyParameters() throws DeploymentException
   53      {
   54         // Set the interfaces
   55         interfaces = new Class[] { MessageEndpoint.class, MessageListener.class };
   56         
   57         // Set the interceptors
   58         interceptors = new ArrayList<Class<?>>();
   59         interceptors.add(ClientMethodInterceptor.class);
   60         interceptors.add(MessageEndpointInterceptor.class);
   61         interceptors.add(TransactionInterceptor.class);
   62         interceptors.add(InvokerInterceptor.class);
   63      }
   64   
   65      public MessageDrivenMetaData getMetaData()
   66      {
   67         MessageDrivenMetaData config =
   68            (MessageDrivenMetaData) container.getBeanMetaData();
   69         return config;
   70      }
   71   
   72      public boolean getCreateJBossMQDestination()
   73      {
   74         // TODO getCreateJBossMQDestination
   75         return false;
   76      }
   77   
   78      public long getKeepAliveMillis()
   79      {
   80         // TODO getKeepAliveMillis
   81         return 0;
   82      }
   83   
   84      public int getMaxMessages()
   85      {
   86         // TODO getMaxMessages
   87         return 0;
   88      }
   89   
   90      public int getMaxPoolSize()
   91      {
   92         // TODO getMaxPoolSize
   93         return 0;
   94      }
   95   
   96      public int getMinPoolSize()
   97      {
   98         // TODO getMinPoolSize
   99         return 0;
  100      }
  101   
  102      public void setKeepAliveMillis(long keepAlive)
  103      {
  104         // TODO setKeepAliveMillis
  105         throw new org.jboss.util.NotImplementedException("setKeepAliveMillis");
  106         
  107      }
  108   
  109      public void setMaxMessages(int maxMessages)
  110      {
  111         // TODO setMaxMessages
  112         throw new org.jboss.util.NotImplementedException("setMaxMessages");
  113         
  114      }
  115   
  116      public void setMaxPoolSize(int maxPoolSize)
  117      {
  118         // TODO setMaxPoolSize
  119         throw new org.jboss.util.NotImplementedException("setMaxPoolSize");
  120         
  121      }
  122   
  123      public void setMinPoolSize(int minPoolSize)
  124      {
  125         // TODO setMinPoolSize
  126         throw new org.jboss.util.NotImplementedException("setMinPoolSize");
  127      }
  128   }

Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » jms » [javadoc | source]