[jboss-user] [EJB 3.0] - javax.naming.NameNotFoundException: ws1 not bound
micho
do-not-reply at jboss.com
Fri Sep 8 08:02:33 EDT 2006
Hello
I hava a stateful sessionbean
@Stateful
| @Remote
| public class SessionTestBean implements Session
calling the bean form the client brings
javax.naming.NameNotFoundException: ws1 not bound
the clientcode is
public class client
| {
| public static void main(String[] args) {
| Session ses =null;
| try {
| InitialContext ctx = new InitialContext();
| ses = (Session) ctx.lookup(
| "ws1/SessionTestBean/remote");
| } catch (Exception e) { e.printStackTrace (); System.exit(-1); }
|
| System.out.println("ses erster Zähler: "+ses.getZaehler());
| System.out.println("ses zweiter Zähler: "+ses.getZaehler());
|
| }}
|
the application.xml is
<?xml version="1.0" encoding="UTF-8"?>
| <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
| <display-name>ws1</display-name>
| <description>ws1</description>
|
| <module>
| <ejb>beans.jar</ejb>
| </module>
| </application>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970329#3970329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970329
More information about the jboss-user
mailing list