Hi guys,

Im trying to create a full ear project with maven2.
Entities module, Ejb3 module, war modules etc...
In my ejb3 module, i have the file "my-app-ds.xml" inside
src/main/resources/META-INF
In my ear module pom, i have the follow:

                    <jboss>
                        <version>4</version>
                        <data-sources>
                            <data-source>
                                my-app-ds.xml
                            </data-source>
                        </data-sources>
                    </jboss>

The problem is: when i try to deploy my EAR, jboss says:
"org.jboss.deployment.DeploymentException: Failed to find module file:
my-app
-ds.xml"

Why jboss can't find the file? Is the wrong place to put my *ds archive?

Another question, how can i change the jndi name for my ear? Cause if i need
to get a instance of remote bean in SE enviroment, im doing this:

jndiContext.lookup("my-app.ear-VERSION/Bean/...");
I wanna config something like: "myapp:Bean/..."

Tkz.
-- 
Paulo Cesar Silva Reis
-------------------------------
Powered by GMAIL

Reply via email to