<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: my nuxeo component exposed as service is not injected in my action bean in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313529#M530</link>
    <description>&lt;P&gt;uhmm ok, excellent. I going to review well those ide options. I have been reading this&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2012 20:24:01 GMT</pubDate>
    <dc:creator>geekonspace</dc:creator>
    <dc:date>2012-05-31T20:24:01Z</dc:date>
    <item>
      <title>my nuxeo component exposed as service is not injected in my action bean</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313525#M526</link>
      <description>&lt;P&gt;Hi, I have developed my own nuxeo component exposed as service with my "nuxeo ide", but it is not injected   in the bean action where it is used. I have this files in my plugin:&lt;/P&gt;
&lt;P&gt;component xml:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/print_1.jpg" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;code in MyService:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;public class MyService extends DefaultComponent implements MyManager {

	public static final ComponentName ID = new ComponentName(
			"my.component.MyService");

	private static final Log log = LogFactory.getLog(TypeService.class);


	protected Bundle bundle;

	public Bundle getBundle() {
		return bundle;
	}

	/**
	 * Component activated notification. Called when the component is activated.
	 * All component dependencies are resolved at that moment. Use this method
	 * to initialize the component.
	 * &amp;lt;p&amp;gt;
	 * The default implementation of this method is storing the Bundle owning
	 * that component in a class field. You can use the bundle object to lookup
	 * for bundle resources:
	 * &amp;lt;code&amp;gt;URL url = bundle.getEntry("META-INF/some.resource");&amp;lt;/code&amp;gt;, load
	 * classes or to interact with OSGi framework.
	 * &amp;lt;p&amp;gt;
	 * Note that you must always use the Bundle to lookup for resources in the
	 * bundle. Do not use the classloader for this.
	 * 
	 * @param context
	 *            the component context. Use it to get the current bundle
	 *            context
	 */
	@Override
	public void activate(ComponentContext context) {
		this.bundle = context.getRuntimeContext().getBundle();
	}


	/**
	 * Component deactivated notification. Called before a component is
	 * unregistered. Use this method to do cleanup if any and free any resources
	 * held by the component.
	 * 
	 * @param context
	 *            the component context. Use it to get the current bundle
	 *            context
	 */
	@Override
	public void deactivate(ComponentContext context) {
		this.bundle = null;
	}

	/**
	 * Application started notification. Called after the application started.
	 * You can do here any initialization that requires a working application
	 * (all resolved bundles and components are active at that moment)
	 * 
	 * @param context
	 *            the component context. Use it to get the current bundle
	 *            context
	 * @throws Exception
	 */
	@Override
	public void applicationStarted(ComponentContext context) throws Exception {
		// do nothing by default. You can remove this method if not used.
	}

	@Override
	public String getStr() {
		// TODO Auto-generated method stub
		return "test";
	}

}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;code in interface:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;public interface MyManager {
	String getStr();
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in myActionBean:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@In(create = true)
protected transient TypeManager typeManager;  //its working

@In(create = true)
protected transient MyManager myManager; //its not working when I use. Example: myManager.getStr();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;this error message is showed:&lt;/P&gt;
&lt;P&gt;@In attribute requires non-null value: myActionBean.myManager
Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null value:&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 14:33:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313525#M526</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-05-31T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: my nuxeo component exposed as service is not injected in my action bean</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313526#M527</link>
      <description>&lt;P&gt;You need to use the Seam Service Bean wizard. It will expose your service as a seam component.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 15:01:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313526#M527</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2012-05-31T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: my nuxeo component exposed as service is not injected in my action bean</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313527#M528</link>
      <description>&lt;P&gt;Thanks doguin but "Seam Service Bean Wizard" is part of "seam plugin" for eclipse or it is part of Nuxeo Plugin? because I do not see it in my ide nuxeo. Anyway, I have resolved this problem developing a seam component that initializes my service using nuxeo api.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 17:08:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313527#M528</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-05-31T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: my nuxeo component exposed as service is not injected in my action bean</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313528#M529</link>
      <description>&lt;P&gt;You did exactly what the wizard does&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 17:12:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313528#M529</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2012-05-31T17:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: my nuxeo component exposed as service is not injected in my action bean</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313529#M530</link>
      <description>&lt;P&gt;uhmm ok, excellent. I going to review well those ide options. I have been reading this&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 20:24:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-nuxeo-component-exposed-as-service-is-not-injected-in-my/m-p/313529#M530</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-05-31T20:24:01Z</dc:date>
    </item>
  </channel>
</rss>

