Re: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins

2012-08-24 Thread Joseph Mocker
In our case it was with Tomcat. On Aug 23, 2012, at 11:21 AM, Martin Gainty wrote: > > JBoss or Tomcat? > > Martin > __ > ..place longwinded disclaimer here... > > >> From: jmoc...@velti.com >> To: user@struts.apache.org >> Subject: Re: Q: S2 RE

Re: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins

2012-08-24 Thread Frans Thamura
my case. we use struts2 (spring and hibernate ), so the Action has been linked with hibernate and POJO, and work quiet good. the result is JSON.. the URL naming from .action become REST (blabla/param/1/2/3), and work well, take a look Mutiara-iman.org, and the method is using @Action and @Result

RE: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins

2012-08-24 Thread Martin Gainty
I wanted to setup a JAX-RS test environment and I thought I would follow your lead Thanks Joseph! Martin Gainty __ ...place longwinded disclaimer here... > From: jmoc...@velti.com > To: user@struts.apache.org > Subject: Re: Spam: RE: Q: S2 REST vs

[S1] Configuring validation in separate config files

2012-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, We've been using Struts 1 (currently 1.3.10) happily for years, mostly with a monolithic configuration file (struts-config.xml). Lately, we've been splitting-out some of the and global-forward configuration into separate files. As a logical next

[Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread John Boyer
So that I can cleanup resources. How can I receive a notification in a Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? Thank you, John Boyer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

Re: [Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread Paul Benedict
Use a servlet listener. On Aug 24, 2012 2:54 PM, "John Boyer" wrote: > So that I can cleanup resources. How can I receive a notification in a > Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? > > Thank you, > John Boyer > --

Re: [Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread Kevin Duffey
As another said.. in web.xml you configure a servlet context listener, in your code you provide a class that implements the ServletContextListener and you can use it to know when the app is deployed and undeployed. On Fri, Aug 24, 2012 at 12:54 PM, John Boyer wrote: > So that I can cleanup reso

RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins

2012-08-24 Thread Martin Gainty
I guess Im not understanding where the default response of json is specified from the resteasy-jaxrs if you specify @Produces("text/html") your function will output HTML as far as Produces.java public @interface Produces { /** * A list of media types. Each entry may specify a single type

RE: [Struts 2] How can I receive notification when the web app has been destroyed?

2012-08-24 Thread Martin Gainty
JMX ClientNotificationListener implementor has a method public static class ClientListener implements NotificationListener { will notify you of *any* notifications that might be sent by the MBeans that are registered in the JMX agent's MBean server http://docs.oracle.com/javase/tutorial/jmx/remo

RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins

2012-08-24 Thread Frans Thamura
if jaxrs produce html. can it render in velocity? so the pojo mapped there like struts2 did Frans Thamura Meruvian On Aug 25, 2012 4:00 AM, "Martin Gainty" wrote: > > I guess Im not understanding where the default response of json is > specified from the resteasy-jaxrs if you specify > @Produc