Satellite Internet QuickBooks Advice international calling cards calling cards
JavaBeat Certifications Certifications Kits Articles Tips QNA Interview Questions SCJP 1.5 SCBCD 5.0 Java/J2EE Feeds
Java Interview Questions Submit Your Blog Feedback Request Article Print Email

Creating Webservice using JBoss and Eclipse Europa

Author : SriHari
Date : Fri Oct 12th, 2007
Topic : webservice eclipse 
Pages :
Enter email address:

Latest JavaBeat Articles Delivered

Introduction

This article will introduce you to JBoss Webservice (JAX-WS). Here you will be knowing how to use the annotations and create a web service to deploy in JBoss. Since JBoss comes with JAX-WS jars inbuilt, we will not be adding any jars in addition for this article. This article will also give you a example code and walk you through the code. This will also explain creation of dynamic web project (not elaborated) and configuration of JBoss server to it.

You can also get JBossws download separately and create a webservice and deploy it in your preferred application server. Since we are using JBoss for this article we will not be covering this information here.

Software Used in Configuring JBossws

  • JBoss Application Server 4.0.5.GA.
  • Eclipse Europa (WTP all in one pack)
  • JDK 1.5.x

Pre-Requirements to Learn JBossWs and follow this article.

  • Should have Java knowledge.
  • Should know how to use Eclipse. (Creating web projects in Eclipse)
  • Should have basic knowledge of webservice.

Where to get the JBossWs from?

You can download the software from the following URL:

Defining JBoss server in Eclipse

First thing what you have to do is to define JBoss server in Eclipse. The steps below will explain how to define JBoss server in Eclipse.

  • Step 1 : Open Eclipse WTP all in one pack in a new work space.
  • Step 2 : Change the perspective to J2EE Perspective if it is not currently in J2EE Perspective.
  • Step 3 : Once the Perspective is changed to J2EE, you can see a tab called Servers in the bottom right panel along with Problems, Tasks, Properties.
  • Step 4 : If the Servers tab is not found. Go to Eclipse menu : Windows > Show view and click on Servers, so that Server tab will be displayed.
  • Step 5 : Go to Servers tab window and right click the mouse. You will get a pop up menu called "New".
  • Step 6 : Clicking on the New menu you will get one more pop up called "Server". Click on it.
  • Step 7 : Now you will get Define New Server Wizard.
  • Step 8 : In the wizard there are options to define many servers. One among them is JBoss. Click on JBoss and Expand the tree.
  • Step 9 : Select JBoss v 4.0 and click next.
  • Step 10 : Now give the JDK directory and JBoss home directory. Click Next.
  • Step 11 : Now the wizard will show you the default Address, port, etc., Leave it as it is and click on Next.
  • Step 12 : Click on finish.
  • Step 13 : Now you can see the JBoss server listed in the Servers window and the status is Stopped.
  • Step 14 : JBoss server is now defined in Eclipse now and its ready to use from with in Eclipse IDE.

Submit Your Blog Feedback Request Article Print Email

Favorites
C# problem error
Free Newsgroups
Latest QnA
SCJD Tips
When we start a thread by applying start() method on it ,how does it knows that to execute run()method?
About Wrapper class in Java
How to configure weblogic 7.0 in MyEclipse?
Static Block and Static Initializer in Java

JavaBeat Website (2004-2009), India
javabeat | about us | useful resources
Copyright (2004 - 2009), JavaBeat