> For example I have a simple bean called MathStuff wich implements a single
> method: int fatorial(int n).
>
> I have compiled MathStuff (remote interface), MathStuffHome and
> MathStuffBean sucessfully and saved the class file at
> JBOSS_HOME/server/default/deploy/myapp.ear
>
> I believe that I just need to write ejb-jar.xml and jboss.xml at META-INF.
> Is that correct?

If you package the classes and the two xml files in a JAR (Java archive)
archive, it would be enough.

> Do I need an application.xml too? If not why I always got:
> org.jboss.deployment.DeploymentException: No META-INF/application.xml
found

You need an application.xml if you package several JARs into an EAR
(Enterprise Archive).

> Is the following ejb-jar.xml near of correction?
>
> <ejb-jar>
> <enterprise-beans>
> <session>
> <ejb-name>ejb/MathStuff</ejb-name>
> <home>MathStuffHome</home>
> <remote>MathStuff</remote>
> <ejb-class>MathStuffBean</ejb-class.
> </session>
> </enterprise-beans>
> </ejb-jar>

It seems to be correct. Do you apply package names? They should be
included...
e.g.: <ejb-class>com.foo.test.MathStuff<...>

I'm working with ant as build tool which facilitates most of this stuff.
XDoclet seems to be quite helpful, too.

Christian




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to