Configuring endpoint URL information to directly access enterprise beans
WebSphere® Application Server supports directly accessing an enterprise bean as a web service, as an alternative to using HTTP or Java™ Message Service (JMS) to transport requests between the server and the client. The Enterprise JavaBeans (EJB) module that is used as a web service contains a Web Services Description Language (WSDL) file that contains EJB bindings.
Before you begin
To learn more about the process of directly accessing an enterprise bean as a web service, see the using WSDL EJB bindings to invoke an EJB from a JAX-RPC web services client.
You can use either the administrative console or property files to configure and manage EJB endpoint URL fragments. To learn about using property files to set and manage the URL fragments, see the information about working with web services endpoint URL fragment property files.
This task describes using the administrative console to configure endpoint URL information to directly access enterprise beans.
About this task
Configuring a service endpoint is necessary to connect web service clients to any web services among the components being assembled or to any external web services.
You can specify web address endpoints of the enterprise bean for web services that are accessed directly by EJB bindings using the Provide JMS and EJB endpoint web address information panel in the administrative console.
If you have modules that are configured for using direct EJB access, the modules are listed on the Provide JMS and EJB endpoint web address information panel in the administrative console. The EJB endpoint is only available in the WSDL that is found in the application_name_ExtendedWSDLfiles.zip file.
You can specify a fragment of the endpoint web address for the web services in each module.
To configure the web address endpoints of the enterprise bean with the administrative console:Procedure
Results
Example
The following example illustrates a web address fragment to enter in the URL fragment field.
wsejb:/com.acme.sample.MyStockQuoteHome?jndiName=ejb/MyStockQuoteHome
Enter
the following web address fragment in the URL fragment field:jndiProviderURL=corbaloc:iiop:myhost.mycompany.com:2089
The
results are shown in the following example:wsejb:/com.acme.sample.MyStockQuoteHome?jndiName=ejb/MyStockQuoteHome&jndiProviderURL=
corbaloc:iiop:myhost.mycompany.com:2089