The application server provides command-line tools to develop
web services clients and implementations that are based on the Java™ API for RESTful Web Services
(JAX-RS) specification. You must set up your development environment
before you start developing web services.
Before you begin
Before you can
set up a web services development environment
within WebSphere® Application
Server, you must install WebSphere Application
Server. For detailed information about installing the application
server, read about installing your application server environment.
To
develop JAX-RS applications, the JAX-RS libraries must be added to
the class path definition. See the information for your assembly tools
to understand how to include libraries on the class path for the JAX-RS
application.
About this task
Set up a web services development
environment by completing
the following actions.
Procedure
- Set up the environment.
Run
the setupCmdLine.bat command from the /profile_root/<application_server>/bin directory.
![[Linux]](../images/linux.gif)
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
Operating systems such as AIX® or Linux
source the script to the
parent shell to inherit the exported variables by running the following
command from the
. /profile_root/<application_server>/bin directory:
. ./setupCmdLine.sh (Notice the space between
the periods.)
You can set WAS_USER_SCRIPT to profile_root\<application_server>\bin\setupCmdLine.bat,
which has the same effect as running the setupCmdLine command.
Run the setupCmdLine script
on the Qshell command line from the . /profile_root/bin directory.
Run the setupCmdLine script from
the . /profile_root/<application_server>/bin directory.
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
Configure the path. You
can add the WebSphere and Java bin directories
to your path by typing: ![[Windows]](../images/windows.gif)
![[z/OS]](../images/ngzos.gif)
set PATH=%WAS_PATH%;%PATH%
![[AIX]](../images/aixlogo.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
![[Linux]](../images/linux.gif)
export PATH=$WAS_PATH:$PATH
Results
You have set up an environment so that you
can develop RESTful
web services.
What to do next
Develop your JAX-RS application and
configure the
web.xml file
for the JAX-RS servlet.