Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Accessing request attributes server side
Accessing request attributes server side [message #101400] Wed, 06 August 2008 20:00 Go to next message
Eclipse UserFriend
Originally posted by: ferry.trunschke.googlemail.com

Hi,

i'm new in RAP/Equinox and I have some questions around integration of
existing server side logic into RAP plugins.

First, what I have todo to deploy a RAP plugin on any standalone or
Embedded EE Webcontainer outside of eclipse (JBoss, Apache Tomcat)?
Can I generate an independet web application archive (*.war) of my rap
plugin by eclipse or ant? Wich files and dependencies are required on
server side application archive? E.g. howto configure and run the well
known 'org.eclipse.rap.demo' plugin on any outside EE server.

Second, How can I access request and session attributes within a RAP
application? I want to integrate existing logic (EJB3/JPA/JNDI) into my
RAP application. By web.xml I could define a Filter or RequestListener
wich injects a transactional persistence facade from JNDI context into the
request scope.
All servlets and jsp's could access the facade by a code fragment like
this: PersistenceFacade facade = (PersistenceFacade)
request.getAttribute("persistenceFacade");
Within my RAP plugin, wich class or factory is my entry point for
accessing attributes of request or session scope?

Thank you for any help or advice.
Re: Accessing request attributes server side [message #101440 is a reply to message #101400] Thu, 07 August 2008 08:20 Go to previous message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi,

ferry wrote:
> i'm new in RAP/Equinox and I have some questions around integration of
> existing server side logic into RAP plugins.
>
> First, what I have todo to deploy a RAP plugin on any standalone or
> Embedded EE Webcontainer outside of eclipse (JBoss, Apache Tomcat)? Can
> I generate an independet web application archive (*.war) of my rap
> plugin by eclipse or ant? Wich files and dependencies are required on
> server side application archive? E.g. howto configure and run the well
> known 'org.eclipse.rap.demo' plugin on any outside EE server.

For a quick start, have a look at the RAP Help:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.rap.help/help/html/advanced/deployment.html

Deployment questions have been discussed over and over on this
newsgroup. You can search the archives for terms like deployment or tomcat.

> Second, How can I access request and session attributes within a RAP
> application? I want to integrate existing logic (EJB3/JPA/JNDI) into my
> RAP application. By web.xml I could define a Filter or RequestListener
> wich injects a transactional persistence facade from JNDI context into
> the request scope.
> All servlets and jsp's could access the facade by a code fragment like
> this: PersistenceFacade facade = (PersistenceFacade)
> request.getAttribute("persistenceFacade");
> Within my RAP plugin, wich class or factory is my entry point for
> accessing attributes of request or session scope?

RWT.getRequest() gives you a reference to the HttpServletRequest
instance that you can use to access the http attributes, session, etc.

Best Regards, Ralf
Previous Topic:Something like SWT expandBar control
Next Topic:I18N
Goto Forum:
  


Current Time: Sat Apr 27 05:23:40 GMT 2024

Powered by FUDForum. Page generated in 0.02483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top