Skip to content

Commit

Permalink
IS-1748: Fix concurrency conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
geir-waagboe committed Oct 31, 2023
1 parent 5ee0a30 commit 8e7abd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/no/nav/syfo/util/JaxBUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ val fellesformatJaxBContext: JAXBContext = JAXBContext.newInstance(
XMLAppRec::class.java,
)

fun getSenderMarshaller(): Marshaller = JAXBContext.newInstance(XMLSender::class.java).createMarshaller()
val xmlSenderJaxBContext = JAXBContext.newInstance(XMLSender::class.java)
fun getSenderMarshaller(): Marshaller = xmlSenderJaxBContext.createMarshaller()
.apply { setProperty(Marshaller.JAXB_ENCODING, "ISO-8859-1") }

val apprecJaxBContext: JAXBContext = JAXBContext.newInstance(XMLEIFellesformat::class.java, XMLAppRec::class.java)
Expand Down

0 comments on commit 8e7abd6

Please sign in to comment.