4 Replies Latest reply on May 26, 2008 9:36 AM by Stephen Friedrich

    Access components in code

    Frank Bitzer Newbie

      Hi all,

      is there a way to receive an instance of an object that is registered as Seam component?

      To speak clearly, I am searching for a code snipped that has the same effect as

      Session session;

      I started with

      Component sessionComp = (Component)            Component.getInstance("hibernateSession.component");

      So I am able to receive the component as such. But how can I unwrap it to the class that it represents?

      Thanks in advance,