It isn't necessary. There are defaults for everything.
The defaults are unlikely to be the best options for all your beans.

On Fri, 2003-08-29 at 23:54, Matthew Hixson wrote:
> In my .ear I have a .jar.  (I guess that's better than having my ear in 
> a jar. ahahhaaha.....)
>    Anyway, it seems that anytime I have jboss.xml in the META-INF 
> directory, as I've seen some example code doing, I get an exception:
> 
> javax.management.InstanceAlreadyExistsException: 
> jboss.j2ee:jndiName=Partner,service=EJB already registered.
> 
> If I don't have jboss.xml there things work as best they have so far.  

Your jndi names must be unique.
You have Partner twice. JBoss uses <ejb-name> when you don't specify
a <jndi-name> in jboss.xml.

> I wouldn't have put jboss.xml into the jar except that I'm trying to 
> figure out why my session beans are being found in JNDI, but my entity 
> beans are not.

You probably have an ejb-name that isn't a valid java name.
The spec requires this extra restriction for entity beans
because it might be used as the table.
e.g. ejbs/MyEntity is not valid

Or maybe you have some other problem with the db mappings?
Post the exception.

>    What's the purpose of jboss.xml?  The file that I think its 
> conflicting with is ejb-jar.xml.

To change the container configuration, e.g. the jndi binding

>    For that matter, when is jbosscmp-jdbc.xml needed?  I don't see any 
> difference whether its in the META-INF directory or not.

To change the db mappings and other persistence engine configurations.

Regards,
Adrian

>    Thanks,
>     -M@
> 
> 
> 
> -------------------------------------------------------
> 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



-------------------------------------------------------
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