-
15. Re: Move ear from Jboss AS 6.1.0 to Jboss AS 7.1.1
sfcoy Jul 10, 2013 11:11 PM (in response to beepeers)That's good to hear.
I had whipped up the attached demo showing EJB injection working with an EAR deployment, but did not get the time to post it.
It uses the server provided JAX-RS implementation, so it does not need any rest-easy dependencies.
This works from both maven command line and Eclipse Kepler with JBoss Tools installed, although you need to do a command line build first to generate the application.xml.
Also, because of http://jira.codehaus.org/browse/MEAR-166, "skinny wars" don't seem to work for ejb components, therefore they must be scoped as "provided" in any dependent web applications.
-
jaxrs-ejb-demo.zip 19.9 KB
-
-
16. Re: Move ear from Jboss AS 6.1.0 to Jboss AS 7.1.1
beepeers Jul 11, 2013 3:40 AM (in response to sfcoy)"therefore they must be scoped as "provided" in any dependent web applications." That's what i did !
"although you need to do a command line build first to generate the application.xml." --> mvn generate-sources ?
I'll give a look to your work asap.
And again thanks for everything man !
-
17. Re: Move ear from Jboss AS 6.1.0 to Jboss AS 7.1.1
beepeers Jul 17, 2013 5:40 AM (in response to beepeers)Hi Stephen !
Your jaxrs-demo was very helpful =)
I switched my project on this model and its works like a charm !
But i have some questions, there are some things that i don't understand.
- I found the responses a little bit longer than Jboss As 6 ( before: 400ms after: 500ms)
- I tried to remove the web.xml from the web module and i get 404 with my RestClient.
- I followed some tutorials for perfomance tuning in Jboss As 7, but i don't see clearly the benefits (maybe the differences will be bigger in production env')
- And i have a question with the EJB: Why in the demo project we have an Interface with the annotation @Local and a child with @Stateless ? (Best Practice ?)
Thanks in advance
Best reguards, Mike
-
18. Re: Move ear from Jboss AS 6.1.0 to Jboss AS 7.1.1
sfcoy Jul 17, 2013 9:06 AM (in response to beepeers)- You should try a newer release, either built from the git tag or downloaded from http://www.jboss.org/jbossas/downloads.
- To run without a web.xml I believe that you need to provide a subclass of javax.ws.rs.core.Application and annotated with javax.ws.rs.ApplicationPath.
- Further to (1), you should try profiling to see where the bottlenecks are.
- The local interface is redundant in JavaEE 6, but I like to use them anyway. I think I may have assumed that you were doing something similar and I was trying not to introduce too many new things.
-
19. Re: Move ear from Jboss AS 6.1.0 to Jboss AS 7.1.1
beepeers Aug 6, 2013 6:18 AM (in response to sfcoy)Hi Stephen !
After a couple of weeks, I must admit that the new jboss is very impressive, I enjoy it so much, but some days I dont understand,
I dont get it... cause when I make some new stuff on my ear project and I deploy it on my dev server, it's like "hey, there's is nothing new here",
tried with some logs in my functions like:
first: "here we come" and then: "HERE WE GO !!!", and I see the first one on the jboss logs..
It's like a blackhole for me, don't know if the problem comes from my ear project with maven or just jboss ?
ps: i saw that jboss have a VFS directory ? no problems with that right ?
Anyway, best reguards, waiting to read your answer !