Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Hello good people of StackOverflow!

I've tried many tutorials on using JBoss Seam and looked at the "Restbay" example in the Seam distro. But I cannot get a working REST web service with the following tech stack:

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

The project layout I've been attempting looks like:

ProjX

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

The EAR layout looks like:

ProjX.ear

  • lib
  • META-INF
  • ProjX-web.war
  • ProjX-ejb.jar

Is this impossible? Ultimately I want to treat my REST resources as Seam action components and reap the benefits of "seamless" injection. Is this an impossible achievement on the mighty JBoss 4.2 Application Server?

(Note: I'm using the maven-ear-plugin to layout my EAR)

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

like image 950
Reuben Peter-Paul Avatar asked Jul 18 '11 14:07

Reuben Peter-Paul


1 Answers

Long time ago that you asked, but maybe you are still interested to hear (if you haven't already found out for yourself) that Seam 2.3 is available in alpha version, which is based on a maven build.

Besides that you should definitely abandon JBoss 4.x and at least take 5.1.

And if you use REST webservices, you may as well take a bigger step and switch to Java EE 6.

like image 199
Alexander Rühl Avatar answered Oct 17 '22 17:10

Alexander Rühl