<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: The Most Basic call EJB 3 from Servlet or JSP</title>
	<atom:link href="http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/feed/" rel="self" type="application/rss+xml" />
	<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/</link>
	<description>his notes</description>
	<lastBuildDate>Tue, 27 Oct 2009 00:34:33 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gardiary</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-104</link>
		<dc:creator>Gardiary</dc:creator>
		<pubDate>Tue, 27 Oct 2009 00:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-104</guid>
		<description>Really kemal thanks for your information.
I Havent try something like that. It will be a good information for other..

Thanks,</description>
		<content:encoded><![CDATA[<p>Really kemal thanks for your information.<br />
I Havent try something like that. It will be a good information for other..</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kemal</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-103</link>
		<dc:creator>kemal</dc:creator>
		<pubDate>Mon, 26 Oct 2009 11:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-103</guid>
		<description>Sorry, i don&#039;t know how to post xml tags. I encoded it, i wish this work:

I added something like this into my web.xml file for my locale interface:

&lt;ejb-local-ref&gt;
   &lt;ejb-ref-name&gt;ejb/my/jndi/path/sb&lt;/ejb-ref-name&gt;
   &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;
   &lt;local-home/&gt;
   &lt;local&gt;com.my.app.SBInterfaceLocal&lt;/local&gt;
&lt;/ejb-local-ref&gt;


And look up the EJB with the name &quot;java:comp/env/ejb/my/jndi/path/sb&quot;</description>
		<content:encoded><![CDATA[<p>Sorry, i don&#8217;t know how to post xml tags. I encoded it, i wish this work:</p>
<p>I added something like this into my web.xml file for my locale interface:</p>
<p>&lt;ejb-local-ref&gt;<br />
   &lt;ejb-ref-name&gt;ejb/my/jndi/path/sb&lt;/ejb-ref-name&gt;<br />
   &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br />
   &lt;local-home/&gt;<br />
   &lt;local&gt;com.my.app.SBInterfaceLocal&lt;/local&gt;<br />
&lt;/ejb-local-ref&gt;</p>
<p>And look up the EJB with the name &#8220;java:comp/env/ejb/my/jndi/path/sb&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kemal</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-102</link>
		<dc:creator>kemal</dc:creator>
		<pubDate>Mon, 26 Oct 2009 11:19:28 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-102</guid>
		<description>Hi,

I&#039;m sorry for this late reply. 

I&#039;m using Glassfish V2.1 in my project, too.  And yes, it gives this exception. It also not related with deploying the EJB module, because i deploy my project as an enterprise application with all of its modules.

What i understand from searching google and my try outs is that if you use local interface you have to declare it in the web.xml file of the web module. There is no problem with the remote interfaces. The remote interfaces are automatically added to jndi.

I added something like this into my web.xml file for my locale interface:


   ejb/my/jndi/path/sb
   Session
   
   com.my.app.SBInterfaceLocal



And look up the EJB with the name &quot;java:comp/env/ejb/my/jndi/path/sb&quot;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m sorry for this late reply. </p>
<p>I&#8217;m using Glassfish V2.1 in my project, too.  And yes, it gives this exception. It also not related with deploying the EJB module, because i deploy my project as an enterprise application with all of its modules.</p>
<p>What i understand from searching google and my try outs is that if you use local interface you have to declare it in the web.xml file of the web module. There is no problem with the remote interfaces. The remote interfaces are automatically added to jndi.</p>
<p>I added something like this into my web.xml file for my locale interface:</p>
<p>   ejb/my/jndi/path/sb<br />
   Session</p>
<p>   com.my.app.SBInterfaceLocal</p>
<p>And look up the EJB with the name &#8220;java:comp/env/ejb/my/jndi/path/sb&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gardiary</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-101</link>
		<dc:creator>gardiary</dc:creator>
		<pubDate>Mon, 26 Oct 2009 02:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-101</guid>
		<description>Have you deploy the EJB&#039;s? It will look something like this, in your admin console:
&lt;img src=&quot;http://gardiary.wordpress.com/files/2009/01/ejbmodules.jpeg&quot; alt=&quot;EJB Modules&quot; /&gt;</description>
		<content:encoded><![CDATA[<p>Have you deploy the EJB&#8217;s? It will look something like this, in your admin console:<br />
<img src="http://gardiary.wordpress.com/files/2009/01/ejbmodules.jpeg" alt="EJB Modules" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TW</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-100</link>
		<dc:creator>TW</dc:creator>
		<pubDate>Sun, 25 Oct 2009 14:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-100</guid>
		<description>I used glassfish 2.1 but... I still got this error 

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: PWC1391: Servlet.init() for servlet HelloEjb3Servlet threw exception
root cause

java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.
root cause

com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref ejb3.servlet.HelloEjb3Servlet/helloEjb@jndi: ejb3.bean.HelloEjb@null@ejb3.bean.HelloEjb@Session@null into class ejb3.servlet.HelloEjb3Servlet
root cause

javax.naming.NameNotFoundException: ejb3.bean.HelloEjb#ejb3.bean.HelloEjb not found

Could you pls advise me?  Thanks</description>
		<content:encoded><![CDATA[<p>I used glassfish 2.1 but&#8230; I still got this error </p>
<p>descriptionThe server encountered an internal error () that prevented it from fulfilling this request.</p>
<p>exception</p>
<p>javax.servlet.ServletException: PWC1391: Servlet.init() for servlet HelloEjb3Servlet threw exception<br />
root cause</p>
<p>java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.<br />
root cause</p>
<p>com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref ejb3.servlet.HelloEjb3Servlet/helloEjb@jndi: ejb3.bean.HelloEjb@null@ejb3.bean.HelloEjb@Session@null into class ejb3.servlet.HelloEjb3Servlet<br />
root cause</p>
<p>javax.naming.NameNotFoundException: ejb3.bean.HelloEjb#ejb3.bean.HelloEjb not found</p>
<p>Could you pls advise me?  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gardiary</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-86</link>
		<dc:creator>Gardiary</dc:creator>
		<pubDate>Mon, 07 Sep 2009 04:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-86</guid>
		<description>What is your application server? Calling EJB 3 using JNDI lookup isn’t the same between Application Server.

If u use glassfish, u shoudn&#039;t get an error.</description>
		<content:encoded><![CDATA[<p>What is your application server? Calling EJB 3 using JNDI lookup isn’t the same between Application Server.</p>
<p>If u use glassfish, u shoudn&#8217;t get an error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kemal</title>
		<link>http://gardiary.wordpress.com/2009/01/05/the-most-basic-call-ejb-3-from-servlet-or-jsp/#comment-85</link>
		<dc:creator>kemal</dc:creator>
		<pubDate>Fri, 04 Sep 2009 15:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://gardiary.wordpress.com/?p=214#comment-85</guid>
		<description>Hi,

i got the error below when using jndi lookup on jsp. can you help me about what am i doing wrong.

i have a local interface called RegisterService and a bean implementation called RegisterServiceBean, both in the same package, session. they are just simple as the ones in your example and i try to use jndi lookup just like the jsp example you gave above. however, i&#039;m getting the error below.


error:

javax.naming.NameNotFoundException: session.RegisterService not found
        at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
        at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
        at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
        at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i got the error below when using jndi lookup on jsp. can you help me about what am i doing wrong.</p>
<p>i have a local interface called RegisterService and a bean implementation called RegisterServiceBean, both in the same package, session. they are just simple as the ones in your example and i try to use jndi lookup just like the jsp example you gave above. however, i&#8217;m getting the error below.</p>
<p>error:</p>
<p>javax.naming.NameNotFoundException: session.RegisterService not found<br />
        at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)<br />
        at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)<br />
        at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)<br />
        at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)<br />
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)<br />
        at javax.naming.InitialContext.lookup(InitialContext.java:392)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
