public ArchiveType getModuleType() { if (bundleDesc!=null) { return bundleDesc.getModuleType(); } return null; }
public XModuleType getModuleType() { if (bundleDesc!=null) { return bundleDesc.getModuleType(); } return null; }
/** * notification that a user authentication attempt has failed. * @param endpoint the endpoint selector * @param principal Optional principal that failed */ public void authFailure(BundleDescriptor bundleDesc, Endpoint endpoint, Principal principal) { if (XModuleType.EJB.equals(bundleDesc.getModuleType())) { if (ejbLogger.isLoggable(Level.FINE)) { ejbLogger.fine("authentication failure for " + endpoint.getEndpointSelector()); } } else { if (webLogger.isLoggable(Level.FINE)) { webLogger.fine("authentication failure for endpoint in " + bundleDesc.getModuleID() + " web app"); } } } }
/** * notification that a user properly authenticated while making * a web service invocation. */ public void authSucess(BundleDescriptor bundleDesc, Endpoint endpoint, Principal principal) { if (XModuleType.EJB.equals(bundleDesc.getModuleType())) { if (ejbLogger.isLoggable(Level.FINER)) { ejbLogger.finer("LOG LISTENER : authentication succeeded for " + endpoint.getEndpointSelector()); } } else { if (webLogger.isLoggable(Level.FINER)) { webLogger.finer("authentication succeeded for endpoint in " + bundleDesc.getModuleID() + " web app"); } } }
public WLSWebServicesDeploymentDescriptorFile(RootDeploymentDescriptor desc) { if (desc instanceof WebServicesDescriptor) { descriptorPath = (((WebServicesDescriptor)desc).getBundleDescriptor().getModuleType().equals(DOLUtils.warType())) ? WLDescriptorConstants.WL_WEB_WEBSERVICES_JAR_ENTRY : WLDescriptorConstants.WL_EJB_WEBSERVICES_JAR_ENTRY; } else if (desc instanceof WebBundleDescriptor) { descriptorPath = WLDescriptorConstants.WL_WEB_WEBSERVICES_JAR_ENTRY; } else if (desc instanceof EjbBundleDescriptor) { descriptorPath = WLDescriptorConstants.WL_EJB_WEBSERVICES_JAR_ENTRY; } }
/** * Obtain a full set of bundle descriptors for a particular type * * @param bundleType the bundle descriptor type requested * @return the set of bundle descriptors */ public Set<BundleDescriptor> getBundleDescriptorsOfType(ArchiveType bundleType) { if (bundleType == null) { return Collections.emptySet(); } Set<BundleDescriptor> bundleSet = new OrderedSet<BundleDescriptor>(); for (ModuleDescriptor aModule : getModules()) { if (aModule.getDescriptor().getModuleType()== bundleType) { bundleSet.add((BundleDescriptor)aModule.getDescriptor()); } for (RootDeploymentDescriptor rd : aModule.getDescriptor().getExtensionsDescriptors()) { if (rd instanceof BundleDescriptor) { if (((BundleDescriptor)rd).getModuleType()== bundleType){ bundleSet.add((BundleDescriptor)rd); } } } } return bundleSet; }
if (!XModuleType.WAR.equals(bundle.getModuleType()) && !XModuleType.EJB.equals(bundle.getModuleType())) { if (XModuleType.WAR.equals(bundle.getModuleType())) { webinfLibDir = moduleDir.getAbsolutePath() + File.separator + "WEB-INF"+File.separator+"lib";
EjbBundleDescriptorImpl ejbBundle = (bundle.getModuleType() != null && bundle.getModuleType().equals(DOLUtils.warType())) ? bundle.getExtensionsDescriptors(EjbBundleDescriptorImpl.class).iterator().next() : (EjbBundleDescriptorImpl) bundle;
BundleDescriptor bundle = webService.getBundleDescriptor(); XModuleType moduleType = bundle.getModuleType();
@Override protected void accept(ResourceEnvReferenceDescriptor resourceEnvRef) { if (resourceEnvRef.getJndiName() == null || resourceEnvRef.getJndiName().length() == 0) { Map<String, ManagedBeanDescriptor> managedBeanMap = getManagedBeanMap(); String refType = resourceEnvRef.getRefType(); if( managedBeanMap.containsKey(refType) ) { ManagedBeanDescriptor desc = managedBeanMap.get(refType); // In app-client, keep lookup local to JVM so it doesn't need to access // server's global JNDI namespace for managed bean. String jndiName = ( bundleDescriptor.getModuleType() == DOLUtils.carType() ) ? desc.getAppJndiName() : desc.getGlobalJndiName(); resourceEnvRef.setJndiName(jndiName); resourceEnvRef.setIsManagedBean(true); resourceEnvRef.setManagedBeanDescriptor(desc); } } computeRuntimeDefault(resourceEnvRef); }
if (serviceSideChain) { WebServiceEndpoint endpoint = (WebServiceEndpoint) container; if (DOLUtils.warType().equals(endpoint.getBundleDescriptor().getModuleType())) { jndiContainer = endpoint.getBundleDescriptor(); } else { if(DOLUtils.ejbType().equals(ref.getBundleDescriptor().getModuleType())) { EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor) ref.getBundleDescriptor(); Iterator<? extends EjbDescriptor> ejbsIter = ejbBundle.getEjbs().iterator();
if (serviceSideChain) { WebServiceEndpoint endpoint = (WebServiceEndpoint) container; if (XModuleType.WAR.equals(endpoint.getBundleDescriptor().getModuleType())) { jndiContainer = endpoint.getBundleDescriptor(); } else { if(XModuleType.EJB.equals(ref.getBundleDescriptor().getModuleType())) { EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor) ref.getBundleDescriptor(); Iterator<EjbDescriptor> ejbsIter = ejbBundle.getEjbs().iterator();
/** * @ return true for following cases: * a. ejb module and schema version earlier than 3.0; * b. web module and schema version earlier than 2.5; * c. appclient module and schema version earlier than 5.0. * d. connector module and schema version earlier than 1.6 */ public boolean isDDWithNoAnnotationAllowed() { ArchiveType mType = getModuleType(); if (mType == null) return false; double specVersion = Double.parseDouble(getSpecVersion()); // we do not process annotations for earlier versions of DD if ( (mType.equals(DOLUtils.ejbType()) && specVersion < ANNOTATION_EJB_VER) || (mType.equals(DOLUtils.warType()) && specVersion < ANNOTATION_WAR_VER) || (mType.equals(DOLUtils.carType()) && specVersion < ANNOTATION_CAR_VER) || (mType.equals(DOLUtils.rarType()) && specVersion < ANNOTATION_RAR_VER)) { return true; } else { return false; } }
portInfo.addStubProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, actualAddress.toExternalForm()); if (serviceRef.getBundleDescriptor().getModuleType().equals(XModuleType.CAR)) { wsdlOverride = serviceRef.getWsdlOverride(); if (wsdlOverride!=null) {
if (bundle.getModuleType().equals(XModuleType.WAR)) { Collection<EjbBundleDescriptor> ejbExtensions = bundle.getExtensionsDescriptors(EjbBundleDescriptor.class);
if (XModuleType.WAR.equals(bundleDesc.getModuleType())) { if(endpoint.getServletImplClass() == null) {
throw new RuntimeException("Error: Unresolved <ejb-link>: "+linkName); } else { final ArchiveType moduleType = ejbRef.getReferringBundleDescriptor().getModuleType(); if(moduleType != null && moduleType.equals(DOLUtils.carType())) { ((referringBundle != null) && (referringBundle.getModuleType() == DOLUtils.carType())) || ( (getApplication() == null) && (referringBundle.getModuleType() != null && referringBundle.getModuleType().equals(DOLUtils.warType())) ) ) {
WebService newWS; if(endpoint == null) { if (DOLUtils.warType().equals(bundleDesc.getModuleType())) { if (DOLUtils.warType().equals(bundleDesc.getModuleType())) { if(endpoint.getServletImplClass() == null) {
if (XModuleType.WAR.equals(bundleDesc.getModuleType())) { if(endpoint.getServletImplClass() == null) {
if (DOLUtils.warType().equals(bundleDesc.getModuleType())) { if(endpoint.getServletImplClass() == null) {