Package org.jboss.ejb3.annotation.impl

Examples of org.jboss.ejb3.annotation.impl.ServiceImpl


         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
         if (service.getEjbName() != null)
            annotation.setName(service.getEjbName());
         if (service.getXmbean() != null)
            annotation.setXMBean(service.getXmbean());
         addClassAnnotation(container, Service.class, annotation);
      }

      addInterfaces(container, service);
View Full Code Here


         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
         if (service.getEjbName() != null)
            annotation.setName(service.getEjbName());
         if (service.getXmbean() != null)
            annotation.setXMBean(service.getXmbean());
         addClassAnnotation(container, Service.class, annotation);
      }

      addInterfaces(container, service);
View Full Code Here

         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
         if (service.getEjbName() != null)
            annotation.setName(service.getEjbName());
         if (service.getXmbean() != null)
            annotation.setXMBean(service.getXmbean());
         addClassAnnotation(container, Service.class, annotation);
      }

      addInterfaces(container, service);
View Full Code Here

/*  516 */     String ejbName = (String)this.ejbNames.get(ejbIndex);
/*      */
/*  518 */     JBossServiceBeanMetaData service = (JBossServiceBeanMetaData)this.ejbs.get(ejbIndex);
/*      */
/*  520 */     ServiceContainer container = super.getServiceContainer(ejbIndex);
/*  521 */     ServiceImpl annotation = new ServiceImpl((Service)container.resolveAnnotation(Service.class));
/*      */
/*  524 */     container.setAssemblyDescriptor(this.dd.getAssemblyDescriptor());
/*      */
/*  526 */     if ((service != null) && (!isAnnotatedBean()))
/*      */     {
/*  528 */       if (service.getObjectName() != null)
/*  529 */         annotation.setObjectName(service.getObjectName());
/*  530 */       if (service.getEjbName() != null)
/*  531 */         annotation.setName(service.getEjbName());
/*  532 */       if (service.getXmbean() != null)
/*  533 */         annotation.setXMBean(service.getXmbean());
/*  534 */       addClassAnnotation(container, Service.class, annotation);
/*      */     }
/*      */
/*  537 */     addInterfaces(container, service);
/*      */
View Full Code Here

         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
         if (service.getEjbName() != null)
            annotation.setName(service.getEjbName());
         if (service.getXmbean() != null)
            annotation.setXMBean(service.getXmbean());
         addClassAnnotation(container, Service.class, annotation);
      }

      addInterfaces(container, service);
View Full Code Here

         throws Exception
   {
      String ejbName = ejbNames.get(ejbIndex);

      ServiceContainer container = super.getServiceContainer(ejbIndex, service);
      ServiceImpl annotation = new ServiceImpl((Service) container
            .resolveAnnotation(Service.class));

      container.setAssemblyDescriptor(dd.getAssemblyDescriptor());

      if (service != null && !isAnnotatedBean())
      {
         if (service.getObjectName() != null)
            annotation.setObjectName(service.getObjectName());
         if (service.getEjbName() != null)
            annotation.setName(service.getEjbName());
         if (service.getXmbean() != null)
            annotation.setXMBean(service.getXmbean());
         addClassAnnotation(container, Service.class, annotation);
      }

      addInterfaces(container, service);
View Full Code Here

      this.beanClass = classloader.loadClass(beanClassName);

      // We can't type cast the direct container, because we just loaded the beanClass
      // so assuming we have an object is a safe bet.
      this.beanContainer = new BeanContainer(this);

      this.ejbName = ejbName;

      String on = createObjectName(ejbName);
      try
View Full Code Here

      // must match JNDI name in jboss-client.xml or display-name in application-client.xml
      String name = new Date().toString();
      String applicationClientName = "ee5client_test";
      String args[] = { name };
     
      ClientLauncher launcher = new ClientLauncher();
      Properties env = getENCProps(applicationClientName);
      launcher.launch(mainClassName, applicationClientName, args, env);
     
      Class<?> clientClass = ClientLauncher.getTheMainClass();
      Class<?> empty[] = {};
      {
         Method getResult = clientClass.getDeclaredMethod("getResult", empty);
View Full Code Here

   {
      String mainClassName = SimpleResourceClient.class.getName();
      String applicationClientName = "ee5client-simpleresource-client"; // must match JNDI name in jboss-client.xml or display-name in application-client.xml
      String args[] = { };

      ClientLauncher launcher = new ClientLauncher();
      launcher.launch(mainClassName, applicationClientName, args);
   }
View Full Code Here

   {
      String mainClassName = SimpleResourceClient.class.getName();
      String applicationClientName = "ee5client-simpleresource-client"; // must match JNDI name in jboss-client.xml or display-name in application-client.xml
      String args[] = { };
     
      ClientLauncher launcher = new ClientLauncher();
      launcher.launch(mainClassName, applicationClientName, args);
   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.annotation.impl.ServiceImpl

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.