[jboss-user] [JBoss Seam] - Re: Context management for custom servlets

pete.muir@jboss.org do-not-reply at jboss.com
Sun Oct 14 14:46:56 EDT 2007


"thatrichard" wrote : I'm using Seam-2.0.0.Beta1.  According to the docs:
  | 
  | anonymous wrote : 25.1.4.6. Context management for custom servlets
  |   | 
  |   | ...Seam provides a servlet filter that can be applied to any other servlet that needs access to Seam components.
  |   | 
  |   | This filter allows custom servlets to interact with the Seam contexts. It sets up the Seam contexts at the beginning of each request, and tears them down at the end of the request
  | 
  | I'm reading this as saying that I can configure Seam to inject components into a simple on-JSF servlet.

No, it just sets up the context - no injection is available - you'll have to get Seam components programatically e.g. using Component.getInstance() or Logging.getLog()

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095031#4095031

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095031



More information about the jboss-user mailing list