3 Replies Latest reply on Mar 24, 2009 11:54 PM by Pete Muir

    Deployment Types - webbeans-1.0.0.ALPHA2

    Nirav Shah Newbie

      Hi!


      Am developing an application using Web Beans and seem to be getting along pretty well with the DI and Binding Annotations part of it. The RI is a great help!


      But however, am having trouble implementing Deployment Types (due to lack of sufficient online help). My application deploys, but my container doesn't seem to recognize and enable only specific deployment types.


      (1) Have Deployment Types been implemented in the webbeans-1.0.0ALPHA2 release?


      (2) If Yes, can some one point me to an example for the configuration I need to put into the web-beans.xml file? I have created the Deployment Types in my Java code.


      Thanks!
      Nirav

        • 1. Re: Deployment Types - webbeans-1.0.0.ALPHA2
          Nirav Shah Newbie

          My JBoss 5.0.1 deploys my webbeans correctly, but doesn't seem to bother what's in the web-beans.xml. I put in a few wrong tags in there, but it doesn't crib about it on initialization.
          Here's the web-beans.xml



          <WebBeans xmlns="urn:java:javax.webbeans"
                     xmlns:myapp="urn:java:uk.co.netdev.cie"
                     xmlns:myfxts="urn:java:uk.co.netdev.cie.webbeans.fixtures"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="urn:java:javax.webbeans http://java.sun.com/jee/web-beans-1.0.xsd">
          
          
              <Deploy>
                  <Production/>
                  <myfxts:AxtelDeployDT/>
              </Deploy>
          
              <Nirav>
                  <Production/>
                  <myfxts:AxtelDeployDT/>
              </Nirav>
          
          </WebBeans>
          



          Here's the Deployment Trace:



          14:27:15,424 INFO  [WebBeansBootstrap] Starting Web Beans RI 1.0.0.ALPHA2
          14:27:15,559 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'plan' uk.co.netdev.cie.datamodel.routing.Plan,  API types = [Object, Plan, Serializable], binding types = [@Current]
          14:27:15,561 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.util.HibernateMain,  API types = [Object, HibernateMain], binding types = [@Current]
          14:27:15,562 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'subscriptionAttribute' uk.co.netdev.cie.datamodel.routing.SubscriptionAttribute,  API types = [Object, SubscriptionAttribute, Serializable], binding types = [@Current]
          14:27:15,563 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.util.HibernateUtil,  API types = [Object, HibernateUtil], binding types = [@Current]
          14:27:15,565 INFO  [BeanDeployer] Web Bean: Dependent simple bean 'planExecutor' uk.co.netdev.cie.behaviour.core.impl.PlanExecutor,  API types = [Object, PlanExecutor, PlanExecutorIF], binding types = [@Current]
          14:27:15,566 INFO  [BeanDeployer] Web Bean: Session scoped simple bean 'outcome' uk.co.netdev.cie.datamodel.routing.Outcome,  API types = [Object, Outcome, Serializable], binding types = [@Current]
          14:27:15,567 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'nodeOutcome' uk.co.netdev.cie.datamodel.routing.NodeOutcome,  API types = [NodeOutcome, Object, Serializable], binding types = [@Current]
          14:27:15,568 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'screeningListEntry' uk.co.netdev.cie.datamodel.feature.ScreeningListEntry,  API types = [ScreeningListEntry, Object, Serializable], binding types = [@Current]
          14:27:15,569 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'application' uk.co.netdev.cie.datamodel.routing.Application,  API types = [Application, Object, Serializable], binding types = [@Current]
          14:27:15,570 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'domain' uk.co.netdev.cie.datamodel.routing.Domain,  API types = [Object, Domain, Serializable], binding types = [@Current]
          14:27:15,570 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'accountDomain' uk.co.netdev.cie.datamodel.core.AccountDomain,  API types = [Object, AccountDomain, Serializable], binding types = [@Current]
          14:27:15,571 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.core.CIERoot,  API types = [Object, CIERoot], binding types = [@Current]
          14:27:15,572 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'axtelNormalizeBehaviour' uk.co.netdev.cie.behaviour.feature.impl.AxtelNormalizeBehaviour,  API types = [FeatureBehaviourIF, Object, NormalizeBehaviour, FeatureBehaviour, AxtelNormalizeBehaviour, Serializable], binding types = [@Current]
          14:27:15,573 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'account' uk.co.netdev.cie.datamodel.core.Account,  API types = [Object, Account, Serializable], binding types = [@Current]
          14:27:15,574 INFO  [BeanDeployer] Web Bean: Session scoped simple bean 'cieUser' uk.co.netdev.cie.datamodel.security.CieUser,  API types = [Object, CieUser, Serializable], binding types = [@Current]
          14:27:15,575 INFO  [BeanDeployer] Web Bean: Session scoped simple bean 'cieGroup' uk.co.netdev.cie.datamodel.security.CieGroup,  API types = [CieGroup, Object, Serializable], binding types = [@Current]
          14:27:15,575 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.utils.TimeIndexIdentifierGenerator,  API types = [Object, TimeIndexIdentifierGenerator, IdentifierGenerator], binding types = [@Current]
          14:27:15,576 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'screeningList' uk.co.netdev.cie.datamodel.feature.ScreeningList,  API types = [Object, Serializable, ScreeningList], binding types = [@Current]
          14:27:15,577 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.utils.TimeIpIdentifierGenerator,  API types = [Object, IdentifierGenerator, TimeIpIdentifierGenerator], binding types = [@Current]
          14:27:15,580 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'node' uk.co.netdev.cie.datamodel.routing.Node,  API types = [Node, Object, Serializable], binding types = [@Current]
          14:27:15,581 INFO  [BeanDeployer] Web Bean: Session scoped simple bean 'featurePermission' uk.co.netdev.cie.datamodel.security.FeaturePermission,  API types = [Object, FeaturePermission, Serializable], binding types = [@Current]
          14:27:15,582 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'featureBehaviour' uk.co.netdev.cie.behaviour.feature.impl.FeatureBehaviour,  API types = [FeatureBehaviourIF, Object, FeatureBehaviour, Serializable], binding types = [@Current]
          14:27:15,583 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.core.AccountAttributeID,  API types = [Object, AccountAttributeID, Serializable], binding types = [@Current]
          14:27:15,585 INFO  [BeanDeployer] Web Bean: Dependent simple bean 'executor' uk.co.netdev.cie.util.Executor,  API types = [Object, Executor, Serializable], binding types = [@Current]
          14:27:15,586 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.routing.NodeConnectionID,  API types = [NodeConnectionID, Object, Serializable], binding types = [@Current]
          14:27:15,588 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.utils.TimeIpUids,  API types = [TimeIpUids, Object], binding types = [@Current]
          14:27:15,589 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'accountAttribute' uk.co.netdev.cie.datamodel.core.AccountAttribute,  API types = [Object, AccountAttribute, Serializable], binding types = [@Current]
          14:27:15,590 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.feature.FeatureData,  API types = [Object, FeatureData, Serializable], binding types = [@Current]
          14:27:15,592 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'connectBehaviour' uk.co.netdev.cie.behaviour.feature.impl.ConnectBehaviour,  API types = [FeatureBehaviourIF, Object, FeatureBehaviour, Serializable, ConnectBehaviour], binding types = [@Current]
          14:27:15,595 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'feature' uk.co.netdev.cie.datamodel.routing.Feature,  API types = [Feature, Object, Serializable], binding types = [@Current]
          14:27:15,596 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.routing.PlanDomainID,  API types = [PlanDomainID, Object, Serializable], binding types = [@Current]
          14:27:15,596 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.core.AccountDomainID,  API types = [AccountDomainID, Object, Serializable], binding types = [@Current]
          14:27:15,597 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'subscription' uk.co.netdev.cie.datamodel.routing.Subscription,  API types = [Object, Subscription, Serializable], binding types = [@Current]
          14:27:15,598 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'eircomNormalizeBehaviour' uk.co.netdev.cie.behaviour.feature.impl.EircomNormalizeBehaviour,  API types = [FeatureBehaviourIF, Object, NormalizeBehaviour, FeatureBehaviour, EircomNormalizeBehaviour, Serializable], binding types = [@Current]
          14:27:15,599 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'planDomain' uk.co.netdev.cie.datamodel.routing.PlanDomain,  API types = [Object, PlanDomain, Serializable], binding types = [@Current]
          14:27:15,608 INFO  [BeanDeployer] Web Bean: Annotated Dependent unnamed producer method bean [org.jboss.webbeans.transaction.UserTransaction]
             API types [interface javax.transaction.UserTransaction, class java.lang.Object, interface org.jboss.webbeans.transaction.UserTransaction], binding types [@javax.inject.Current()]
          
          14:27:15,608 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean org.jboss.webbeans.transaction.Transaction,  API types = [Object, Transaction], binding types = [@Current]
          14:27:15,609 INFO  [BeanDeployer] Web Bean: Session scoped simple bean 'accountPermission' uk.co.netdev.cie.datamodel.security.AccountPermission,  API types = [Object, AccountPermission, Serializable], binding types = [@Current]
          14:27:15,610 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'nodeConnection' uk.co.netdev.cie.datamodel.routing.NodeConnection,  API types = [Object, NodeConnection, Serializable], binding types = [@Current]
          14:27:15,611 INFO  [BeanDeployer] Web Bean: Dependent simple bean 'nodeResolver' uk.co.netdev.cie.behaviour.core.impl.NodeResolver,  API types = [NodeResolverIF, Object, NodeResolver], binding types = [@Current]
          14:27:15,611 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'nodeAttribute' uk.co.netdev.cie.datamodel.routing.NodeAttribute,  API types = [Object, NodeAttribute, Serializable], binding types = [@Current]
          14:27:15,612 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'featureParameter' uk.co.netdev.cie.datamodel.routing.FeatureParameter,  API types = [Object, FeatureParameter, Serializable], binding types = [@Current]
          14:27:15,613 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'prefixNormalizeBehaviour' uk.co.netdev.cie.behaviour.feature.impl.PrefixNormalizeBehaviour,  API types = [FeatureBehaviourIF, Object, NormalizeBehaviour, PrefixNormalizeBehaviour, FeatureBehaviour, Serializable], binding types = [@Current]
          14:27:15,614 INFO  [BeanDeployer] Web Bean: Dependent simple bean 'cie' uk.co.netdev.cie.util.Cie,  API types = [Object, Cie], binding types = [@Current]
          14:27:15,614 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'releaseBehaviour' uk.co.netdev.cie.behaviour.feature.impl.ReleaseBehaviour,  API types = [FeatureBehaviourIF, Object, FeatureBehaviour, ReleaseBehaviour, Serializable], binding types = [@Current]
          14:27:15,615 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.utils.TimeIndexUids,  API types = [Object, TimeIndexUids], binding types = [@Current]
          14:27:15,618 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'resolveBehaviour' uk.co.netdev.cie.behaviour.feature.impl.ResolveBehaviour,  API types = [ResolveBehaviour, FeatureBehaviourIF, Object, FeatureBehaviour, Serializable], binding types = [@Current]
          14:27:15,619 INFO  [BeanDeployer] Web Bean: Application scoped simple bean 'normalizeBehaviour' uk.co.netdev.cie.behaviour.feature.impl.NormalizeBehaviour,  API types = [FeatureBehaviourIF, Object, NormalizeBehaviour, FeatureBehaviour, Serializable], binding types = [@Current]
          14:27:15,620 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.utils.TimeIndexUidsMain,  API types = [Object, TimeIndexUidsMain], binding types = [@Current]
          14:27:15,620 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.feature.ScreeningListEntryID,  API types = [Object, ScreeningListEntryID, Serializable], binding types = [@Current]
          14:27:15,621 INFO  [BeanDeployer] Web Bean: Conversation scoped simple bean 'domainParameter' uk.co.netdev.cie.datamodel.routing.DomainParameter,  API types = [Object, DomainParameter, Serializable], binding types = [@Current]
          14:27:15,621 INFO  [BeanDeployer] Web Bean: Dependent unnamed simple bean uk.co.netdev.cie.datamodel.security.CieUserID,  API types = [Object, CieUserID, Serializable], binding types = [@Current]
          14:27:15,631 INFO  [WebBeansBootstrap] Web Beans initialized. Validating beans.






          • 2. Re: Deployment Types - webbeans-1.0.0.ALPHA2
            Nirav Shah Newbie

            All sorted! :)
            Downloaded 1.0.0.BETA1
            Works Now.


            Cheers!
            Nirav

            • 3. Re: Deployment Types - webbeans-1.0.0.ALPHA2
              Pete Muir Master

              FWIW, XML (beyond <Deploy /> isn't implemented in beta1, will be in the next release