Is it possible to initialize the jaxb context using spring and wire it into your service?
I presume that that its the jaxb context initialization that is taking all the time? On Wed, Oct 22, 2008 at 2:04 PM, Alp Timurhan Çevik <[EMAIL PROTECTED]>wrote: > Hello, > > I need to connect to a server that has an HL7 v3 based wsdl document which > has tens of thousands of different types. I have a server application which > listens for some events and sends data to these web services. > > I am currently having performance problem at startup. It takes 5-10 minutes > for the service to complete jaxb initialization (I guess). After the first > call, things run smoothly, responding at max 10 seconds. > > In order to solve the problem, I have began to send a dummy message at the > startup, which seemed like solving my performance problem at startup, but > later on I found out that after some inactivity time, the first message > problem just resurrects. I thought as I do have a lot of classdefinitions > from these wsdls, the noclassgc jvm parameter could solve my problem, but > alas it did not. Actually it is not an easy problem to test, also, because > I > have to wait for the timeout. > > I am thinking of sending the dummy messages regularly, but the server > application I run is also running some simple web services which sends data > to hl7 v3 (the huge ones) web services and replies to the users according > to > the response from hl7 v3s. > > I have also tried sxj but still startup performance is miserable. > > Any suggestions ? > > Best regards, > Alp Timurhan Çevik >
