Impossible technical stack? Jboss / Seam / Resteasy / Hibernate / Maven

Hi, nice people StackOverflow!

I tried a lot of tutorials on using JBoss Seam and looked at the "Restbay" example in the Seam distribution. But I can’t get a working REST web service with the following technical stack:

  • JBoss 4.2.3
  • Seam 2.2. *
  • Resteasy 2.2. *
  • Hibernate 3
  • Maven 3 (critical)

The layout of the project I'm trying looks like this:

Projx

  • pom.xml
  • Projx ear
  • Projx-ejb
  • Projx web

The EAR scheme looks like this:

Projx.ear

  • Lib
  • META-INF
  • Projx-web.war
  • Projx-ejb.jar

It's impossible? Ultimately, I want to handle REST resources as components of a Seam action and take advantage of seamless injection. Is this an impossible achievement on a powerful JBoss 4.2 application server?

(Note: I am using the maven-ear plugin to build my EAR)

[UPDATE: this is not impossible, I almost did it! I just ran out of time ...]

+6
source share
1 answer

You asked a long time ago, but you might still be interested to hear (if you haven’t discovered for yourself) that Seam 2.3 is available in the alpha version , which is based on the maven build.

In addition, you should definitely abandon JBoss 4.x and at least take 5.1.

And if you use REST web services, you can also take a bigger step and switch to Java EE 6.

+1
source

Source: https://habr.com/ru/post/892995/


All Articles