-
1. Re: No reference get from JSP client while accessing webserv
fss Mar 15, 2006 5:10 AM (in response to prasadj)Show your deployed ejb-jar.xml+jboss.xml!
-
2. Re: No reference get from JSP client while accessing webserv
prasadj Mar 15, 2006 6:06 AM (in response to prasadj)my jboss.xml content is as follows,
<!DOCTYPE jboss PUBLIC
"-//JBoss//DTD JBOSS 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<enterprise-beans>
<ejb-name>Example</ejb-name>
<jndi-name>Example</jndi-name>
<service-ref>
<service-ref-name>services/hello</service-ref-name>
<wsdl-override>http://localhost:8080/hello-servlet/Hello?wsdl</wsdl-override>
</service-ref>
</enterprise-beans>
my ejb-jar content is as follows,
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
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/ejb-jar_2_1.xsd"
xmlns:hello="http://hello.chap12.jboss.org/"
version="2.1">
<display-name>example bean</display-name>
<enterprise-beans>
<ejb-name>Example</ejb-name>
org.jboss.chap12.example.ExampleHome
org.jboss.chap12.example.Example
<ejb-class>org.jboss.chap12.example.ExampleBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<service-ref>
<service-ref-name>services/hello</service-ref-name>
<service-interface>javax.xml.rpc.Service</service-interface>
<wsdl-file>META-INF/wsdl/hello.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
<service-qname>hello:HelloService</service-qname>
</service-ref>
</enterprise-beans>
</ejb-jar> -
3. Re: No reference get from JSP client while accessing webserv
fss Mar 15, 2006 9:41 AM (in response to prasadj)try
cntxt = new InitialContext(); ref= cntxt.lookup("Example");