Utilisation de l'annotation @xmlSchema avec jaxb

Je n'arrive pas à afficher dans un fichier xml de tous les paramètres configurés avec le @xmlSchema annotation au niveau du colis. Par exemple, si j'ai mis:

@javax.xml.bind.annotation.XmlSchema (               
    xmlns = { 
            @javax.xml.bind.annotation.XmlNs(prefix = "com", 
                     namespaceURI="http://es.indra.transporte.common"),

            @javax.xml.bind.annotation.XmlNs( prefix = "xsi",
                     namespaceURI="http://www.w3.org/2001/XMLSchema-instance"),

            @javax.xml.bind.annotation.XmlNs( prefix = "ns2",
                     namespaceURI="http://es.indra.transporte.configuration"),             
           },    
    location = "http://es.indra.transporte.configuration StationNetwork.xsd",
    elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED        
)
package es.indra.transporte.central.thalesinterface.common.beans;

- Je m'attendre à voir quelque chose comme:

<stationNetwork xmlns:ns2="http://es.indra.transporte.configuration"
                xmlns:com="http://es.indra.transporte.common"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://es.indra.transporte.configuration StationNetwork.xsd">

mais j'obtiens le résultat suivant:

<stationNetwork xmlns:com="http://es.indra.transporte.common">

Ce que je fais mal? Comment puis-je obtenir les résultats attendus?

source d'informationauteur Fran