Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 577733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:11:07+00:00 2026-05-13T14:11:07+00:00

Background I am attempting to make a webservice using SOAP and JBOSS. I know

  • 0

Background

I am attempting to make a webservice using SOAP and JBOSS. I know that to make a webservice that you do something like this:

import javax.jws.WebService;

@WebService
public class HelloImpl {

  /**
   * @param name
   * @return Say hello to the person.
   */
   public String sayHello(String name) {
     return "Hello, " + name + "!";
   }
}

I understand in general how java annotations work:

@nnotations are defined by the Java language. An Annotation is a class. When you mark something with an annotation, the compiler and runtime arrange for an object of that class to be visible at runtime via java reflection.

Thanks to bmargulies from this thread.

I am not certain what jboss does with the annotaions.

Question 1: What I think is that jboss either generates xml OR wsdl based on the annotations. Is this correct? Note: I am refering to tags like @Webservice, @WebContent, @SecurityDomain, @Stateless

Question 2: If jboss does generate xml OR wsdl do I need the annotations? Am I allowed to just create that file myself?

Similar Pages:

  • Java annotations (more general)
  • Java annotations: library to override annotations with xml files
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:11:07+00:00Added an answer on May 13, 2026 at 2:11 pm

    You should more see the annotations as a replacement/alternative to XML configuration files. When JBoss starts up it just scans the entire classpath for classes with the particular annotations and then loads/instantiates/maps them in the memory. If no annotations were used here, JBoss would just parse and read the XML configuration file for hints where the particular classes are located and/or how to handle them and then loads/instantiates/maps them each in the memory roughly the same way.

    You’re free to define XML config files yourself. You can even use it simultaneously with annotations, but keep in mind that XML config files (usually) outweights/overrides the same configuration which is definied in flavor of annotations -if any. This because XML config files are externally controllable without the need to rewrite/rebuild/redeploy all the Java code again and again. JBoss does not generate XML files based on the annotated classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: At my company we are developing a bunch applications that are using the
Okay, I'll try to make this as straight forward as possible. I'm using VB.Net
I am attempting to make it so that whenever a checkbox is checked the
Background I am writing and using a very simple CGI-based (Perl) content management tool
I'm attempting to override the default ToggleButton appearance. Here's the XML that defines the
First off, there's a bit of background to this issue available on my blog:
I'm attempting to make a simple homebrew game engine/framework in android. I have the
Background: I am attempting to do a couple of unit tests on AJAX requests
I'm attempting to develop an application that scapes html of a site for relevant
I want to try something different, and am attempting to display an overlay on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.