Hibernate and Jetty and Plugin [message #58105] |
Wed, 07 November 2007 03:53 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03891 seconds