Prev | Current Page 165 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"


BEA Weblogic
HelloWorldEJB Endpoint t3 Channel HTTP Channel
Endpoint XFireExporter
Provider Domain
SimpleRemoteStateless
SessionProxyFactoryBean
Client
Spring in Tomcat
Consumer Domain
User E-Commerce
Server
Firewall Web Server Application
Server
Provider Domain Consumer Domain
Chapter 5
[ 115 ]
Code Listing
XFireBindEjb.war
META INF
MANIFEST.MF
WEB INF
classes
META INF
xfire
web.xml
xfire servlet.xml
lib
esb_slsb_basic_statelessSession_client.jar
xfire all 1.1 RC1.jar
The code for this sample is organized into two, in two separate folders, one for the
EJB part and another for the XFire binding. We will walk through the main classes
only, in the following:
1. HelloWorldBI.class: HelloWorldBI is the Business Interface (BI) class for the
stateless enterprise Java session bean, hence very simple and straightforward.
This is demonstrated as follows:
public interface HelloWorldBI
{
String sayHello(int num, String s) throws IOException;
}
Some XFire Binding Tools
[ 116 ]
2. HelloWorldEJB.class: HelloWorldEJB is the EJB implementation class. We
will again use Weblogic libraries to make coding our EJB simpler; hence
we use Weblogic's GenericSessionBean as the base class, which will have
default implementations for the EJB interface.


Pages:
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177