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 6755221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:22:27+00:00 2026-05-26T13:22:27+00:00

Does anyone know what the default implementation is for List instances in JaxB2? Is

  • 0

Does anyone know what the default implementation is for List instances in JaxB2?

Is there a way to change the implementation, and if so, what is it?

  • 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-26T13:22:27+00:00Added an answer on May 26, 2026 at 1:22 pm

    The default List implementation in JAXB 2 is java.util.ArrayList. When generating your model from an XML schema you can set the collectionType in an external bindings file to choose an alternate implementation:

    <jxb:bindings
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
        version="2.1">
    
        <jxb:bindings schemaLocation="customer.xsd">
            <jxb:bindings node="//xs:element[@name='customer']/xs:complexType/xs:sequence/xs:element[@name='phone-number']">
                <jxb:property collectionType="java.util.LinkedList"/>
            </jxb:bindings>
        </jxb:bindings>
    
    </jxb:bindings>
    

    For More Information

    • http://blog.bdoughan.com/2011/01/jaxb-and-choosing-list-implementation.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using RefineryCMS, does anyone know if there's a way to fallback to the default
Does anyone know the full list of C# compiler number literal modifiers? By default
By default nunit tests run alphabetically. Does anyone know of any way to set
Does anyone know how to change the default behavior of the /clr switch to
Does anyone know a way that I can set my picker to default /
Does anyone know how to set up a default querystring to an asp.net webform
Does anyone know of any C# syntax highlighter plugins for Confluence? Using the default
Does anyone know the default values for the timeout of service endpoints in a
Does anyone know of an existing implementation of a sortable behavior for Doctrine? I'm
Does anyone know how can I default web browser character encoding in php, which

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.