[jboss-user] [JBoss Seam] - Re: Communication between Business and Presentation Layer

chawax do-not-reply at jboss.com
Fri Dec 7 09:48:20 EST 2007


I made this. But my code is generated by AndroMDA with Seam and EJB3 cartridge, so I am not sure why it works lol

But here are a few pieces of code that may help you :

The EJB is injected this way in my Seam component :
@javax.ejb.EJB
  |     protected myPackage.ServiceProcessusRemote serviceProcessus;

My Seam component is itself an EJB (@javax.ejb.Stateful annotated).

And my serviceProcessus EJB is declared in ejb-jar.xml, something like this :

<session>
  |     <ejb-name>ServiceProcessusBean</ejb-name>
  |     <remote>myPackage.ServiceProcessusRemote</remote>
  |     <ejb-class>myPackageServiceProcessusBean</ejb-class>
  |     <session-type>Stateless</session-type>
  |     <transaction-type>Container</transaction-type>
  | </session>

Hope it will help you.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111255#4111255

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111255



More information about the jboss-user mailing list