How to Use Grizzly Embedded Server for Mule as Well as Jersey
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2009-10-02T14:56:45Z
Indexed on
2010/04/20
23:53 UTC
Read the original article
Hit count: 419
I'm currently using JerseyTest w/ Grizzly embedded server to test some code. I do some very simple configuration to point it to the proper resources:
Map<String, String> initParams = new HashMap<String, String>();
initParams.put("com.sun.jersey.config.property.packages", "com.sample.service");
ApplicationDescriptor appDescriptor = new ApplicationDescriptor();
appDescriptor.setServletInitParams(initParams);
super.setupTestEnvironment(appDescriptor);
This works fine and the Jersey components are available and working as expected.
I'm now trying to add some Mule functionality to some of these Jersey calls, but Mule is not being properly initialized/configured by Grizzly. Has anyone gotten this kind of setup running? What additional configuration do I need to do with JerseyTest/GrizzlyWebServer to get it to initialize Mule properly?
© Stack Overflow or respective owner