background image
<< Connecting to an EJB | Initial Context Factory >>
<< Connecting to an EJB | Initial Context Factory >>

Connect Panel

90
Chapter 3 - Testing Enterprise JavaBeans
A sample Connect Panel appears in the following figure:
To connect to a deployed EJB and return its home interface:
1
Specify the
Provider URL
.
The
Provider URL
is used to specify the location of the server that is used to
provide the Naming Service.
The default URL for the WebSphere Naming Service server is
iiop:///
.
The default URL for the WebLogic Naming Service server is
t3://localhost:7001
.
The default URL for the Sun J2EE Naming Service server is
iiop://localhost:1050
.
The general format for the
Provider URL
is:
service
://
host
:
port
/
where
service
refers to the name given to the Naming Service for the Application
Server.
host
is the host machine that the Naming Service is running on.
port
refers to the specific port on the host machine that the Naming Service is
listening to for requests.