Package org.jboss.resource.metadata

Examples of org.jboss.resource.metadata.ConnectorMetaData


   @Override
   public ServiceConstructorMetaData buildConstructor(ManagedConnectionFactoryDeploymentMetaData mcfmd)
   {
      ServiceConstructorMetaData constructor = new ServiceConstructorMetaData();

      ConnectorMetaData md = repository.getConnectorMetaData(mcfmd.getRarName());
      if( md == null )
         throw new IllegalStateException("No ConnectorMetaData found for mdf rarName: "+mcfmd.getRarName());
      constructor.setParameters(new Object[]{md, mcfmd});
      constructor.setSignature(new String[]{md.getClass().getName(), ManagedConnectionFactoryDeploymentMetaData.class.getName()});
      return constructor;      
   }
View Full Code Here


   public ConnectorMetaData getConnectorMetaData(String name)
   {
      JCAConnectorMetaDataKey entry = new JCAConnectorMetaDataKey(name);
      entry.setName(name);
      ConnectorMetaData md = getConnectorMetaData(entry);     
      return md;
   }
View Full Code Here

   protected RARDeploymentMetaData mergeMetaData(VFSDeploymentUnit unit, Map<Class<?>, List<Object>> metadata) throws Exception
   {
      RARDeploymentMetaData deployment = new RARDeploymentMetaData();

      ConnectorMetaData cmd = getInstance(metadata, ConnectorMetaData.class);
      if (cmd != null)
         deployment.setConnectorMetaData(cmd);

      JBossRAMetaData jrmd = getInstance(metadata, JBossRAMetaData.class);
      if (jrmd != null)
View Full Code Here

      super(RARDeploymentMetaData.class);
   }

   protected void deployJsr77(MBeanServer server, VFSDeploymentUnit unit, RARDeploymentMetaData rdmd) throws Throwable
   {
      ConnectorMetaData metaData = rdmd.getConnectorMetaData();
      // Create the ResourceAdapterModule
      String rarName = unit.getSimpleName();
      ObjectName rarService = extractRootObjectName(server, unit, rdmd); // TODO
      ObjectName jsr77ModuleName = ResourceAdapterModule.create(server, FactoryUtils.findEarParent(unit), rarName, unit.getRoot().toURL());
      putObjectName(unit, ResourceAdapter.class.getName(), jsr77ModuleName);
View Full Code Here

      putObjectName(unit, rarService.getCanonicalName(), jsr77RAName);
   }

   protected void undeployJsr77(MBeanServer server, VFSDeploymentUnit unit, RARDeploymentMetaData rdmd)
   {
      ConnectorMetaData metaData = rdmd.getConnectorMetaData();
      ObjectName jsr77Name = removeObjectName(unit, ResourceAdapter.class.getName());
      ResourceAdapter.destroy(server, getDisplayName(unit, metaData));
      log.debug("Destroy module: " + jsr77Name);
      if (jsr77Name != null)
      {
View Full Code Here

   {
      if ((data instanceof DeploymentInfo) == false)
         return null;

      DeploymentInfo di = (DeploymentInfo) data;
      ConnectorMetaData metaData = (ConnectorMetaData) di.metaData;

      // Create the ResourceAdapterModule
      String rarName = di.shortName;
      ObjectName rarService = di.deployedObject;
      ObjectName jsr77ModuleName = ResourceAdapterModule.create(mbeanServer,
              FactoryUtils.findEarParent(di),
              rarName,
              di.localUrl);
      deploymentToModuleNameMap.put(di, jsr77ModuleName);
      log.debug("Created module: " + jsr77ModuleName);

      // Create the ResourceAdapter
      ObjectName jsr77RAName = ResourceAdapter.create(mbeanServer,
              metaData.getDescription().getDisplayName(), jsr77ModuleName, rarService);
      // Register a mapping from the RARDeployment service to the ResourceAdapter
      moduleServiceToMgmtMap.put(rarService, jsr77RAName);

      return jsr77ModuleName;
   }
View Full Code Here

   {
      if ((data instanceof DeploymentInfo) == false)
         return;

      DeploymentInfo di = (DeploymentInfo) data;
      ConnectorMetaData metaData = (ConnectorMetaData) di.metaData;
      ObjectName jsr77Name = (ObjectName) deploymentToModuleNameMap.get(di);

      ResourceAdapter.destroy(mbeanServer, metaData.getDescription().getDisplayName());
      log.debug("Destroy module: " + jsr77Name);
      if (jsr77Name != null)
      {
         ResourceAdapterModule.destroy(mbeanServer, jsr77Name);
      }
View Full Code Here

/* 783 */     if (!localName.equals("connector"))
/*     */     {
/* 785 */       throw new IllegalStateException("Unexpected root element: was expecting 'connector' but got '" + localName + "'");
/*     */     }
/*     */
/* 788 */     ConnectorMetaData cmd = new ConnectorMetaData();
/* 789 */     String version = attrs.getValue("version");
/* 790 */     if (version != null)
/*     */     {
/* 792 */       cmd.setVersion(version);
/*     */     }
/* 794 */     return cmd;
/*     */   }
View Full Code Here

/*     */   protected AdminObjectMetaData retrieveAdminObjectMetaData()
/*     */     throws DeploymentException
/*     */   {
/*     */     try
/*     */     {
/* 121 */       ConnectorMetaData cmd = (ConnectorMetaData)this.server.getAttribute(this.rarName, "MetaData");
/* 122 */       return cmd.getAdminObject(this.type);
/*     */     }
/*     */     catch (Throwable t)
/*     */     {
/* 126 */       DeploymentException.rethrowAsDeploymentException("Error retrieving admin object metadata type=" + this.type + " ra=" + this.rarName, t);
/* 127 */     }return null;
View Full Code Here

/* 59 */     this.activationSpecType = activationSpecType;
/*    */
/* 61 */     MessageListenerMetaData listener = new MessageListenerMetaData();
/* 62 */     listener.setType(listenerType);
/* 63 */     listener.setActivationSpecType(activationSpecType);
/* 64 */     ConnectorMetaData metaData = getConnectorMetaData();
/* 65 */     this.metaData = metaData;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.resource.metadata.ConnectorMetaData

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.