Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Hibernate and Jetty and Plugin
Hibernate and Jetty and Plugin [message #58105] Wed, 07 November 2007 03:53 Go to next message
Eclipse UserFriend
Originally posted by: m.n.com

Anyone know how to get to the web.xml (or whatever is being used) in the
RAP Plugin? I need to put some things in it to init Hibernate.
Re: Hibernate and Jetty and Plugin [message #59589 is a reply to message #58105] Wed, 14 November 2007 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

RAP uses an OSGi Http Service implementation as underlying servlet runtime
for development mode. The implementation uses an embbeded Jetty engine.
Unfortunately there is no possibility yet to use a web.xml (or a complete
replacement mechanism) for configuration in this mode. For more information
about the infrastructure used by RAP you may have a look at
http://www.eclipse.org/equinox/server/.

However using the Embedding Equinox in a Servlet Container mode
(http://www.eclipse.org/equinox/server/http_in_container.php) with RAP (see
also the deployment threads in this newsgroup) the whole application is
deployed as a standard web application using a web.xml. Maybe this could be
useful for you.

Ciao
Frank


"Mark" <m@n.com> schrieb im Newsbeitrag
news:fgrctb$o90$1@build.eclipse.org...
> Anyone know how to get to the web.xml (or whatever is being used) in the
> RAP Plugin? I need to put some things in it to init Hibernate.
Re: Hibernate and Jetty and Plugin [message #59923 is a reply to message #59589] Wed, 14 November 2007 23:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.n.com

Thanks Frank. I knew about the servlet container embedding for
deployment and my plan was to do that on deployment. But I was hoping to
not have to hack something up during development and then change it on
deployment. But I guess I have no choice. I do have the hacked up
stuff working. Not a big deal. For now.

Frank Appel wrote:
> Hi,
>
> RAP uses an OSGi Http Service implementation as underlying servlet runtime
> for development mode. The implementation uses an embbeded Jetty engine.
> Unfortunately there is no possibility yet to use a web.xml (or a complete
> replacement mechanism) for configuration in this mode. For more information
> about the infrastructure used by RAP you may have a look at
> http://www.eclipse.org/equinox/server/.
>
> However using the Embedding Equinox in a Servlet Container mode
> (http://www.eclipse.org/equinox/server/http_in_container.php) with RAP (see
> also the deployment threads in this newsgroup) the whole application is
> deployed as a standard web application using a web.xml. Maybe this could be
> useful for you.
>
> Ciao
> Frank
>
>
> "Mark" <m@n.com> schrieb im Newsbeitrag
> news:fgrctb$o90$1@build.eclipse.org...
>> Anyone know how to get to the web.xml (or whatever is being used) in the
>> RAP Plugin? I need to put some things in it to init Hibernate.
>
>
Re: Hibernate and Jetty and Plugin [message #59944 is a reply to message #59923] Thu, 15 November 2007 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benedikt.arnold.beyondsoft.de

Hi!

I use system properties to configure hibernate. For development I put them
as arguments in the launch configuration like this: -Dhibernate.dialect=...

And for deployment I put them the same way into the web.xml file. This is
done at the same place as the -console argument.

Greetings,
Benedikt
Re: Hibernate and Jetty and Plugin [message #59990 is a reply to message #59944] Thu, 15 November 2007 10:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benedikt.arnold.beyondsoft.de

I fogot to mention that you have to read the properties form bundle
context and put them manually into the Hibernate configuration object.
Re: Hibernate and Jetty and Plugin [message #60128 is a reply to message #59990] Fri, 16 November 2007 00:56 Go to previous message
Eclipse UserFriend
Originally posted by: m.n.com

Benedikt Arnold wrote:
> I fogot to mention that you have to read the properties form bundle
> context and put them manually into the Hibernate configuration object.
>
Thanks. Thats a good idea. But I guess I forgot to mention I was using
Spring too, so I won't be able to do that.
Previous Topic:Theming questions (buttontext/viewtab)
Next Topic:RAP projects templates/example
Goto Forum:
  


Current Time: Fri Jul 19 07:35:44 GMT 2024

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

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

Back to the top