Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company runs 40 services with JAXB-based integrations, some generated from XSDs nobody owns. How do you decide when to retire JAXB and the XML contracts behind it?

I would decide per integration, starting from an inventory that records each XML integration's partner, volume, revenue and regulatory need. Internal XML contracts are retired first, moved to JSON or Protobuf with versioned schemas, because only we pay for them. External ones are either migrated by negotiation with the partner or kept in a small, well-owned integration layer. Every schema gets an owner, unowned schemas go on the risk register until they have one, and I measure the cost of incidents, upgrade effort and security findings tied to XML to set priorities and show progress.

Why this question is asked

Old technology rarely gets retired by decision; it gets retired by accident, when a person who understood it leaves or an upgrade fails. Forty services with JAXB integrations, some generated from schemas nobody owns, is a typical estate after ten years of growth. Interviewers ask this leadership question to see whether we can make a retirement decision with evidence rather than taste, sequence it so the business is never at risk, and deal with the parts nobody owns. In this answer, we will build the inventory, sort integrations into categories, plan the internal migrations, handle the external contracts, deal with unowned schemas, and measure the cost that justifies the work.

1Starting With an Inventory

A decision about 40 services cannot be made from impressions. The first step is a list of every XML integration, which is different from the list of services: one service may have five integrations and several services may share one. For each integration we record the counterpart (internal team, external partner or regulator), message volume, the revenue or business process it supports, whether XML is required by contract or regulation, the schema and its source, the owning team, and its recent history of incidents and upgrades.

Much of this can be gathered automatically: searching repositories for JAXB imports and XSD files, reading dependency trees, and counting messages from logs or metrics. The rest needs conversations with teams and business owners, which also reveals integrations everyone had forgotten about. That discovery alone often justifies the exercise.

Inventory of XML integrations (example)
IntegrationCounterpartVolume per dayXML required?Owner
Payment status from Bank Xexternal bank120,000yes, ISO 20022payments team
Tax filinggovernment gateway40yes, by regulationfinance systems
Order events to warehouseinternal service300,000nofulfilment
Legacy pricing exportinternal batch1 filenonobody
Supplier catalogue feedexternal supplier2 filesby contract, renewableprocurement

2Sorting Integrations Into Categories

With the inventory, the integrations fall into a few groups, and each group has a different decision. Internal contracts, where both ends are our own services, have no external reason to be XML; they exist because of history. External contracts required by regulation or a standard, such as ISO 20022 payments or tax filings, will stay XML for years, whatever we prefer. External contracts by agreement can change if the partner is willing. And then there are integrations with no clear owner or user, which need investigation before any decision.

Step throughDeciding the future of one XML integration
  1. Are both ends our own services?
    YesRetire: migrate to JSON or ProtobufNoIt is an external contract
  2. Is XML required by regulation or a standard?
    YesKeep, in a small owned integration layerNoIt is a partner agreement
  3. Will the partner move to another format?
    YesNegotiate and plan the migrationNoKeep, in the integration layer
  4. For every kept integration: owner, budget, hardened parsers

4 steps in order. Play them, or step through them one at a time.

Unowned integrations go to the risk register first, then through this flow.

3Retiring Internal XML Contracts First

Internal contracts come first because we control both ends and every hour spent on them is our own cost: JAXB upgrades, namespace migrations, XXE hardening, and engineers' time learning schemas for messages no outsider requires. Each one moves to JSON with a versioned JSON Schema or OpenAPI description, or to Protobuf where volume or strict typing matters, keeping the same discipline of an explicit, versioned contract.

The migration pattern is the usual safe one. The producer publishes both formats for a period, consumers switch one by one, and we watch the old format's traffic fall to zero before removing it. With the inventory, we pick the order by cost and risk: high-volume or frequently broken integrations first, because they return the most value, and small, stable ones later or together with other planned changes to those services.

4Handling External Contracts

For external partners, the decision is a business conversation. Some partners already offer a JSON or REST API and would welcome moving off an old SOAP interface; then migration is a joint project with a date. Others cannot or will not change, and regulators set their formats for everyone. For those, the goal is not to remove XML but to shrink and contain it.

Containment means one small integration layer per partner, or a central integration service, that is the only place in the estate where that partner's XML is parsed or produced. It uses current Jakarta XML Binding, hardened parsers and a binding library built from a versioned schema, and it publishes neutral internal events, so the other services never touch XML. Instead of 40 services each carrying JAXB, perhaps 6 integration components do, each with a named owner and a maintenance budget. That is a much smaller surface to upgrade, secure and staff.

5Owners for Every Schema, Risk Register for the Rest

Schemas nobody owns are the real danger in this estate. Generated classes from an unknown XSD cannot be safely regenerated, nobody can tell whether a partner change affects them, and nobody is watching when they fail. So the rule is that every schema in production has an owning team. For each unowned one we first find out whether anyone uses it, from traffic and from asking business owners. If no one does, we switch it off with a planned observation period. If someone does, a team takes ownership, recovers or reconstructs the schema, and puts it under the normal governance.

Until that happens, each unowned schema is an entry on the risk register, the list leadership reviews of risks with an impact and an action. That makes the risk visible to people who can assign people to it, instead of leaving it as a worry among engineers.

6Measuring the Cost to Set Priorities

To decide what to retire and to justify the work, I would measure what XML costs us, per integration: incidents and their impact, hours spent on upgrades such as the javax to jakarta migration, security findings tied to XML parsing, and the number of people who can maintain it. A few numbers make the case. If internal XML integrations caused 9 incidents and 400 engineering hours in a year, while their migration costs 600 hours once, the payback is clear.

The same measures track progress: the number of services that parse XML, the number of unowned schemas, and the cost per year should all fall quarter by quarter. Reporting them to leadership keeps the programme funded, and when the numbers stop falling, the remaining XML is the part we have decided to keep on purpose.

7Follow-up questions

What if a team insists XML works fine for their internal contract?

Then the inventory decides. If the integration is stable, rarely changed and cheap, it can wait until the service is next changed anyway. The point is not to remove XML out of fashion but to stop paying for it where nobody needs it, starting with the integrations that cost the most.

How do you retire an integration nobody can confirm is used?

Measure traffic first. If there is none for a long period, announce the shutdown, switch it off with an easy way back, and watch for complaints during an observation window, for example a full business quarter so monthly and quarterly processes have a chance to run.

Would you ban JAXB for new work?

For new internal contracts, yes, by standard. For new external integrations, the standard is to offer JSON first and use XML only when the partner or a regulation requires it, and then only inside an integration layer.

8Conclusion

In this answer, we decided JAXB's future per integration, not for the estate as a whole. An inventory with partner, volume, revenue and regulatory need sorts integrations into internal contracts, which we retire first by moving to JSON or Protobuf with versioned schemas, and external ones, which we migrate by negotiation or contain in a small, owned integration layer. Every schema gets an owner, unowned ones go on the risk register, and measuring incidents, upgrade effort and security findings sets the priorities and shows progress.

What to say in the interviewAbout 90 seconds aloud

Open with

I would not decide for JAXB as a whole; I would decide per integration, so I start with an inventory. For every XML integration I want the counterpart, volume, the revenue or process behind it, whether XML is required by contract or regulation, the schema's source, the owner, and recent incidents and upgrade effort.

Then, if they want more

That sorts things into groups. Internal contracts, where both ends are ours, go first: they cost us money and nobody outside requires XML, so I move them to JSON with JSON Schema or OpenAPI, or Protobuf for high volume, with versioned schemas and a period of publishing both formats.

External contracts split into ones we can negotiate, where we plan a migration with the partner, and ones required by regulation or standards like ISO 20022, which we keep but contain in a small integration layer per partner that is the only place XML is parsed, with current Jakarta binding, hardened parsers and a named owner.

Schemas nobody owns are the real danger: I find out from traffic whether they are used, switch off the unused ones with an observation window, assign owners to the rest, and keep each on the risk register until it has one.

To prioritise and justify the work, I measure incidents, upgrade hours and security findings tied to XML per integration, and report those numbers falling over time.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company runs 40 services with JAXB-based integrations, some generated from XSDs...": https://scrivio-interview-library.netlify.app/java/jaxb/e902ec8c77/