[jboss-user] [JBoss Seam] - Re: Using an EJB3 in seam
german.castro
do-not-reply at jboss.com
Mon Nov 12 10:53:40 EST 2007
The way of use an ejb or resources is the same of other kind of projects??
I also was trying to use a datasource from a seam action and this returns null (ds is null):
@Resource (mappedName="jndi") DataSource ds;
The deploy structure is this:
ClientPortal.ear
|-- ClientPortalWeb.war
| |-- META-INF
| | `-- MANIFEST.MF
| |-- WEB-INF
| | |-- classes
| | | |-- ClientPortalWeb-ds.xml
| | | |-- META-INF
| | | | `-- persistence.xml
| | | |-- ..... actions
| | | |-- components.properties
| | | |-- import.sql
| | | |-- messages_en.properties
| | | |-- seam.properties
| | | `-- security.drl
| | |-- components.xml
| | |-- faces-config.xml
| | |-- jboss-web.xml
| | |-- lib
| | | |-- jboss-seam-debug.jar
| | | |-- jboss-seam-ui.jar
| | | |-- jsf-facelets.jar
| | | |-- richfaces-impl.jar
| | | `-- richfaces-ui.jar
| | |-- pages.xml
| | `-- web.xml
| |-- error.xhtml
| |-- home.xhtml
| |-- img
| | |-- cal-next.png
| | |-- cal-prev.png
| | |-- dtpick.gif
| |-- index.html
| |-- layout
| | |-- display.xhtml
| | |-- edit.xhtml
| | |-- loginout.xhtml
| | |-- menu.xhtml
| | `-- template.xhtml
| |-- login.page.xml
| |-- login.xhtml
| |-- stylesheet
| | `-- theme.css
|-- META-INF
| |-- MANIFEST.MF
| `-- application.xml
|-- jboss-seam.jar
|-- lib
| |-- antlr-runtime.jar
| |-- commons-beanutils.jar
| |-- commons-digester.jar
| |-- drools-compiler.jar
| |-- drools-core.jar
| |-- ejb-api.jar
| |-- el-api.jar
| |-- janino.jar
| |-- jboss-el.jar
| |-- jboss-seam-gen.jar
| |-- jboss-seam-ioc.jar
| |-- jboss-seam-mail.jar
| |-- jboss-seam-pdf.jar
| |-- jboss-seam-remoting.jar
| |-- jbpm-jpdl.jar
| |-- jsf-api.jar
| |-- jsf-impl.jar
| |-- mvel14.jar
| `-- richfaces-api.jar
`-- servicesClientPortal.jar
|-- META-INF
| |-- MANIFEST.MF
| `-- ejb-jar.xml
`-- cl
`-- ..... ejbs
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103742#4103742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103742
More information about the jboss-user
mailing list