I have a web application with a web service (JAX-WS) defined with the JAX-WS and Spring annotations. I can deploy it to glassfish 2.1.1 and it works like a champ. Pretty much like the standard examples (except that I have multiple versions of the webservices running through a single service impl.).
I have a test class that creates a client via Spring using the JaxWsProxyFactoryBean class, but that assumes that the glassfish web container is up and running. What I'm wondering is if its possible to write my JUnit test so that it creates the server (without glassfish or jetty) and client beans (in that order, since the client needs the generated wsdl). I'm running on Java6 and tried doing an Endpoint.publish but that doesn't do the Spring injection work. I'm now looking at the jaxws:server component and if I have to will fall back to creating a jetty instance but I'm not clear how that looks in JUnit - I'm assuming that the server will create its own thread pool. I can't find any examples anywhere of a Spring/JUnit-based integration test that starts up a server as well as a client. Is this possible? Any clues on what to look at first? Also, I'm not running this through maven. I'd like to run the JUnit-based integration tests from my IDE (eclipse). Thanks, Brian --- Brian Repko LearnThinkCode, Inc. email: [email protected] phone: +1 612 229 6779
