American Airlines has introduced Mobile Boarding Pass, which allows you to avoid having to print a boarding pass at home. Instead, a link to the boarding pass is emailed to your device. You follow the link to retrieve a device-only version of your boarding pass which can be shown to security and gate personnel. Currently, you can only use this for non-stop flights from Chicago O’Hare, LAX or Santa Anna, so it’s extremely limited. The other obvious problem is showing your boarding pass after you pass through the metal detector - you can’t take your phone through the detector, so how can you show the boarding pass after you pass through?
More information on Mobile Boarding Pass can be found here.
nick Entry airlines, mobility
At a recent event in Denver, some of our integration partners complained about the namespace prefixes in the XML we generated. By default, JAXB creates simple prefixes like “ns1″, “ns2″ and so on. I’m not sure it matters unless you’re processing XML using some archaic means, but keeping partners happy is usually a good idea, so I turned to the JAXB API.
JAXB makes prefix customization pretty easy through the NamespacePrefixMapper class, found in the com.sun.xml.bind.marshaller package. The abstract class has one method to implement:
From here, it’s a simple matter of returning the prefix you want for a given namespace, then telling your JAXBContext about your implementation:
If you’re also using javax.xml.xpath.XPath, your NamespacePrefixMapper can also implement javax.xml.namespace.NamespaceContext, centralizing your namespace customization in a single class.
nick Entry java, jaxb, namespace customization, xml, xpath