Hello,
I have a problem in my very fist Hello World example.
I deployed a trivial Stateless Session Bean, here is the code of the bean and
the test JSP:
package test;
import javax.ejb.*;
@Remote
public interface UserRemote
{
public int get();
}
----------------------------------
package test;
import javax.ejb.*;
@Stateless
public class User
implements UserRemote
{
public int get()
{
return 8;
}
}
---------------------------------
<[EMAIL PROTECTED] import="java.util.*, test.*, javax.naming.*" %>
<%
InitialContext ctx = new InitialContext();
out.println("" + ctx + "");
out.println(ctx.lookup("User") + "");
%>
The problem is that ctx.lookup returns a NamingContext and NOT an User (!!!).
Here is the JSP output:
[EMAIL PROTECTED]
--------------------------------------------------------------------------------
[EMAIL PROTECTED]
Where am I wrong?
thanks for any help
Mario
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975887#3975887
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975887
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user