Skip to main content



      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 10:05 Go to next message
Eclipse UserFriend
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.
Re: About the mounts of the JAX-RS demo [message #1702359 is a reply to message #1702320] Tue, 21 July 2015 13:58 Go to previous messageGo to next message
Eclipse UserFriend
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 08:06 Go to previous messageGo to next message
Eclipse UserFriend
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....
Re: About the mounts of the JAX-RS demo [message #1703098 is a reply to message #1702582] Tue, 28 July 2015 10:25 Go to previous message
Eclipse UserFriend
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: Mon May 05 18:36:53 EDT 2025

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

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

Back to the top