Package org.jboss.metadata.ejb.jboss

Examples of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData


            JBossEntityBeanMetaData md = (JBossEntityBeanMetaData) beanMD;
            jndiName = md.determineJndiName();
         }
         else if( beanMD.isSession())
         {
            JBossSessionBeanMetaData md = (JBossSessionBeanMetaData) beanMD;
            jndiName = md.determineJndiName();
         }
      }
      return jndiName;
   }
View Full Code Here


      stateful session handles acquire the proxy by sending an invocation to
      the ejb container.
       */
      if (bean.isSession())
      {
         JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData) bean;
         if (smd.isStateful())
         {
            EJBMethodPermission p = new EJBMethodPermission(bean.getEjbName(), "getEJBObject", "Home", null);
            pc.addToUncheckedPolicy(p);
         }
      }
View Full Code Here

         wsEjbMD.setEjbName(jbossEjbMD.getEjbName());
         wsEjbMD.setEjbClass(jbossEjbMD.getEjbClass());

         if (jbossEjbMD.isSession())
         {
            final JBossSessionBeanMetaData sessionEjbMD = (JBossSessionBeanMetaData) jbossEjbMD;

            // set home interfaces
            wsEjbMD.setServiceEndpointInterface(sessionEjbMD.getServiceEndpoint());
            wsEjbMD.setHome(sessionEjbMD.getHome());
            wsEjbMD.setLocalHome(sessionEjbMD.getLocalHome());

            // set JNDI names
            wsEjbMD.setJndiName(sessionEjbMD.determineJndiName());
            wsEjbMD.setLocalJndiName(jbossEjbMD.determineLocalJndiName());

            final PortComponent portComponentMD = sessionEjbMD.getPortComponent();
            if (portComponentMD != null)
            {
               // set port component meta data
               wsEjbMD.setPortComponentName(portComponentMD.getPortComponentName());
               wsEjbMD.setPortComponentURI(portComponentMD.getPortComponentURI());
View Full Code Here

      JBossEnterpriseBeanMetaData enterpriseBeanMetaData = this.xml;
      if (enterpriseBeanMetaData.isSession() == false)
      {
         return false;
      }
      JBossSessionBeanMetaData sessionBean = (JBossSessionBeanMetaData) enterpriseBeanMetaData;
      return sessionBean.isStateful();
   }
View Full Code Here

      return mbean;
   }
  
   private void initializeTimeout()
   {
      JBossSessionBeanMetaData metaData = getMetaData();
      NamedMethodMetaData timeoutMethodMetaData = null;
      if(metaData != null)
         timeoutMethodMetaData = metaData.getTimeoutMethod();
      this.timeout = getTimeoutCallback(timeoutMethodMetaData, getBeanClass());
   }
View Full Code Here

        
         /*
          * Get all business interfaces
          */
         Set<String> businessInterfaceNames = new HashSet<String>();
         JBossSessionBeanMetaData smd= (JBossSessionBeanMetaData)this.getXml();
         businessInterfaceNames.addAll(smd.getBusinessRemotes());
         businessInterfaceNames.addAll(smd.getBusinessLocals());
        
         String interfaceName = intf.getName();
        
         if (!businessInterfaceNames.contains(interfaceName))
            throw new IllegalStateException("Cannot find BusinessObject for interface: " + interfaceName);
View Full Code Here

      return mbean;
   }
  
   private void initializeTimeout()
   {
      JBossSessionBeanMetaData metaData = getMetaData();
      NamedMethodMetaData timeoutMethodMetaData = null;
      if(metaData != null)
         timeoutMethodMetaData = metaData.getTimeoutMethod();
      this.timeout = getTimeoutCallback(timeoutMethodMetaData, getBeanClass());
   }
View Full Code Here

         Util.rebind(getContainer().getInitialContext(), this.getJndiName(), proxy);
        
         // Bind a proxy per business interface
         //TODO This ugly block should be using polymorphism, but I'll allow it as the proxy mechanism
         // is going to be replaced entirely by EJB3 Proxy soon
         JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData) container.getXml();
         BusinessRemotesMetaData remotes = smd.getBusinessRemotes();
         BusinessLocalsMetaData locals = smd.getBusinessLocals();
         Set<String> businessInterfaces = new HashSet<String>();
         boolean isLocal = this.isLocal();
         if (!isLocal)
         {
            if (remotes != null)
View Full Code Here

   protected abstract Class<?> getHomeType();
  
   protected String getJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String jndiName = md.determineResolvedJndiName(null);
      return jndiName;
   }
View Full Code Here

   }

   protected String getHomeJndiName()
   {
      SessionSpecContainer container = this.getContainer();
      JBossSessionBeanMetaData md = container.getMetaData();
      String home = md.getHome();
      String jndiName = md.determineResolvedJndiName(home);
      return jndiName;
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.