Package org.glassfish.ejb.deployment.descriptor

Examples of org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl


            for(Class next : ejbClass.getInterfaces()) {
                if( !excludedFromImplementsClause(next) ) {
                    if( intfName == null ) {
                        intfName = next.getName();
                    } else {
                        EjbBundleDescriptorImpl currentBundle = (EjbBundleDescriptorImpl)
                        ((EjbBundleContext)ainfo.getProcessingContext().getHandler()).getDescriptor();
                        log(Level.SEVERE, ainfo,
                            localStrings.getLocalString(
                            "enterprise.deployment.annotation.handlers.ambiguousimplementsclausemdb",
                            "Implements clause for 3.x message driven bean class {0} in {1} declares more than one potential message-listener interface.  In this case, the @MessageDriven.messageListenerInterface() attribute must be used to specify the message listener interface.",
                             new Object[] { ejbClass,
                             currentBundle.getModuleDescriptor().getArchiveUri() }));
                        return getDefaultFailedResult();
                    }
                }
            }
        }
View Full Code Here


                                                 DTDRegistry.SUN_EJBJAR_210_DTD_PUBLIC_ID};
            String acceptableURLs[] = {DTDRegistry.SUN_EJBJAR_200_DTD_SYSTEM_ID,
                                       DTDRegistry.SUN_EJBJAR_210_DTD_SYSTEM_ID};
           
            boolean foundDOCTYPE = false, foundPubid = false, foundURL = false;
            EjbBundleDescriptorImpl ejbBundleDesc = descriptor.getEjbBundleDescriptor();
            EjbBundleRuntimeNode ejbBundleRuntimeNode = new EjbBundleRuntimeNode(ejbBundleDesc);
           
            String s = ejbBundleRuntimeNode.getDocType();
            if(s != null) {
                if(s.indexOf("DOCTYPE") > -1)
View Full Code Here

  Result result = getInitializedResult();
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

        try{
            EjbBundleDescriptorImpl ejbBundleDesc = descriptor.getEjbBundleDescriptor();
            ResourceReferenceDescriptor cmpResource = ejbBundleDesc.getCMPResourceReference();
           
            if(cmpResource!=null){
//                String jndiName = cmpResource.getJndiName();
                String jndiName = getXPathValue("sun-ejb-jar/enterprise-beans/cmp-resource/jndi-name");
                if(jndiName == null || jndiName.length()==0){
View Full Code Here

        if (getMethod != null) {
      boolean run = false;
            // get the return type for the setMethod
            fieldType = getMethod.getReturnType();
      EjbBundleDescriptorImpl bundle = ((EjbDescriptor) entity).getEjbBundleDescriptor();
      if (!RmiIIOPUtils.isValidRmiIDLPrimitiveType(fieldType) &&
    !EjbUtils.isValidSerializableType(fieldType)) {
    // it must be a reference to a bean's home or local interface
    if (!isValidInterface(fieldType, bundle.getEjbs(),MethodDescriptor.EJB_REMOTE, result)) {
         result.addErrorDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
        result.addErrorDetails(smh.getLocalString
         (getClass().getName() + ".failed",
         "Error : Invalid type assigned for container managed field [ {0} ] in bean [ {1} ]",
          new Object[] {((Descriptor)persistentField).getName(),entity.getName()}));
        return false;
    }
    if (!isValidInterface(fieldType, bundle.getEjbs(),MethodDescriptor.EJB_LOCAL, result)) {
         result.addErrorDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
        result.addErrorDetails(smh.getLocalString
View Full Code Here

                    (getClass().getName() + ".notApplicable",
                    "This test is only for CMP 2.0 beans. Abstract Schema Names should be unique within an ejb JAR file."));
                    return result;
      }

      EjbBundleDescriptorImpl bundle = descriptor.getEjbBundleDescriptor();
      Iterator iterator = (bundle.getEjbs()).iterator();
      Vector<String> schemaNames = new Vector<String>();
      while(iterator.hasNext()) {
    EjbDescriptor entity = (EjbDescriptor) iterator.next();
    if (entity instanceof EjbEntityDescriptor) {
        if (!entity.equals(descriptor)) {
View Full Code Here

               "Field [ {0} ] is not a dependent value class reference",
               new Object[] {fieldName}));       
                return true;
            }
             // it must be a reference to a bean's home or remote interface
            EjbBundleDescriptorImpl bundle = ((EjbDescriptor) entity).getEjbBundleDescriptor();
            if ((isValidInterface(returnType, bundle.getEjbs(),MethodDescriptor.EJB_REMOTE)) ||
    (isValidInterface(returnType, bundle.getEjbs(),MethodDescriptor.EJB_LOCAL))) {
    result.addGoodDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
    result.addGoodDetails(smh.getLocalString(
View Full Code Here

            if (info.type.getName().equals("java.util.Collection") ||
                info.type.getName().equals("java.util.Set")) {
                foundIt = true;
            }
        } else {
      EjbBundleDescriptorImpl bundle = ((EjbDescriptor) descriptor).getEjbBundleDescriptor();
      if(((EjbDescriptor) descriptor).getLocalClassName() != null &&
         !"".equals(((EjbDescriptor) descriptor).getLocalClassName())) {
    if (isValidInterface(info.type, bundle.getEjbs())) {
        foundIt = true;
    }
      }
      else {
    if ((role.getRelationshipDescriptor()).getIsBidirectional()) {
View Full Code Here

      (descriptor instanceof EjbSessionDescriptor)) {
       
      // RULE: Role names must be mapped to names within the ejb-jar
      Set roleReferences = descriptor.getRoleReferences();
      Iterator roleRefsIterator = roleReferences.iterator();
      EjbBundleDescriptorImpl bundleDescriptor = descriptor.getEjbBundleDescriptor();
      Set roles = bundleDescriptor.getRoles();
      Iterator roleIterator = roles.iterator();
      Role role = null;
      RoleReference roleReference = null;
      boolean found = false;
      boolean oneFailed = false;
View Full Code Here

                ((EjbOptionalIntfGenerator) optIntfClassLoader).generateOptionalLocalInterface(ejbClass, optIntfClassName);
                ejbGeneratedOptionalLocalBusinessIntfClass = optIntfClassLoader.loadClass(optIntfClassName);
            }

            if( isStatelessSession || isSingleton ) {
                EjbBundleDescriptorImpl bundle = ejbDescriptor.getEjbBundleDescriptor();
                WebServicesDescriptor webServices = bundle.getWebServices();
                Collection endpoints = webServices.getEndpointsImplementedBy(ejbDescriptor);
                // JSR 109 doesn't require support for a single ejb
                // implementing multiple port ex.
                if( endpoints.size() == 1 ) {
View Full Code Here

        throws Exception
    {

        if( isWebServiceEndpoint ) {

            EjbBundleDescriptorImpl bundle =
                ejbDescriptor.getEjbBundleDescriptor();
            WebServicesDescriptor webServices = bundle.getWebServices();
            Collection myEndpoints =
                webServices.getEndpointsImplementedBy(ejbDescriptor);


            // An ejb can only be exposed through 1 web service endpoint
View Full Code Here

TOP

Related Classes of org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl

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.