You should be able to get access to Spring's ApplicationContext (and
all your beans) using the following:

ServletContext servletContext =this.getServletContext();
WebApplicationContext wac =
WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
UserManager userManager = (UserManager) wac.getBean("userManager");

Matt

On Mon, Sep 8, 2008 at 1:54 AM, Andrew Sky <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>  I am trying to write a simple servlet to access all the service manager
> layer that i created with Appfuse 2.0.
> Is there any tutorial on this ? Reason being that i need to create a midlet
> that need to consume services from the service layer. I guess the most
> straightforward and time efficient way is to create a servlet to listen to
> the request from the midlet and have the servlet talking directly with the
> manager to get the result before passing it back to the midlet. Any help is
> appreciated.
>
> thanks and regards
> Andrew
> --
> View this message in context: 
> http://www.nabble.com/writing-servlet-to-access-the-manager-in-appfuse2.0-tp19367521s2369p19367521.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to