Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Gyrex » About the mounts of the JAX-RS demo
icon9.gif  About the mounts of the JAX-RS demo [message #1702320] Tue, 21 July 2015 14:05 Go to next message
Sean Zhang is currently offline Sean ZhangFriend
Messages: 20
Registered: July 2015
Location: China
Junior Member

Hi All,

I have imported the sample service project mentioned in the article (https://wiki.eclipse.org/Gyrex/Learning_Material/Develop_JAX-RS). And it works correct in my local environment. But, I have a question about the mounts configuration, why the mount url shall be http:/sample, and how the call of http://localhost:8080/sample will trigger the execution of the HelloResource? Is there any detail document about the JAX-RS implementation with Gyrex?

Thanks.
Sean.


Study every day, and love every day!
Re: About the mounts of the JAX-RS demo [message #1702359 is a reply to message #1702320] Tue, 21 July 2015 17:58 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

On 2015-07-21 14:05:23 +0000, Sean Zhang said:
> I have imported the sample service project mentioned in the article
> (https://wiki.eclipse.org/Gyrex/Learning_Material/Develop_JAX-RS). And
> it works correct in my local environment. But, I have a question about
> the mounts configuration, why the mount url shall be http:/sample, and
> how the call of http://localhost:8080/sample will trigger the execution
> of the HelloResource? Is there any detail document about the JAX-RS
> implementation with Gyrex?

The URL with just one slash means "scheme:/path". It doesn't contain a
domain name. Therefore Gyrex will make the resource accessible on all
domains a server can be reached on. If you only want a specific domain
(eg. like Apache VHost) then you can specify one in a mount.

It's mentioned in one of our concepts:
https://wiki.eclipse.org/Gyrex/Concepts/Http_Applications

There is more in our internals hub:
https://wiki.eclipse.org/Gyrex/Development_Space

-Gunnar

--
Gunnar Wagenknecht
gunnar@xxxxxxxx
Re: About the mounts of the JAX-RS demo [message #1702582 is a reply to message #1702359] Thu, 23 July 2015 12:06 Go to previous messageGo to next message
Sean Zhang is currently offline Sean ZhangFriend
Messages: 20
Registered: July 2015
Location: China
Junior Member

Hi Gunnar ,

Thanks for your points.

By the way, is there any document about the annotation support for JAX-RS application in Gyrex? It's difficult to get the ideas through reading source code....


Study every day, and love every day!
Re: About the mounts of the JAX-RS demo [message #1703098 is a reply to message #1702582] Tue, 28 July 2015 14:25 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

On 2015-07-23 12:06:49 +0000, Sean Zhang said:
> By the way, is there any document about the annotation support for
> JAX-RS application in Gyrex? It's difficult to get the ideas through
> reading source code....

Gyrex is using the Jersey implementation. Thus, this should work
according to their documentation.

Additionally, Gyrex provides out-of-the box support for injecting OSGi
services and the Gyrex IRuntimeContext (as well as objects from it).

-Gunnar

--
Gunnar Wagenknecht
gunnar@xxxxxxxx
Previous Topic:what's the correct eclipse version shall I use for gyrex 1.3.2?
Next Topic:Cannot set the request filter to my JaxRsApplication
Goto Forum:
  


Current Time: Sun Nov 18 08:55:12 GMT 2018

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

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

Back to the top