Hi Jan

The META-INF directory can be anywhere you like, (it doesn't even have to be
a directory in fact the norm is that it isn't, see docs). You can have only
one deployment descriptor per jar. You can have multiple jar files.

Many beans sharing the same deployment descriptor isn't actually a problem,
you have one discrete entry per bean. Also what do you mean by "lots of
beans" ? Don't forget - EJB beans are "components" by which I mean, in
relation to this discussion, they are an order of magnitude bigger than a
class (eg 1 EJB bean may well comprise many Java classes).

Edward

-----Original Message-----
From: Andersson, Jan [mailto:[EMAIL PROTECTED]]
Sent: 04 January 2001 22:55
To: 'jBoss'
Subject: [jBoss-User] 



Hi!

I've been working my way through the "Beginning EJB programming using jBoss
(Windows)" and have now started to create some beans by myself. Some
problems I've come across have had me thinking of the following things found
in "Beginning ...".

The structure for the interest bean example: 

com
    web_tomorrow
        interest
            {java source and class files here}

META-INF
        ejb-jar.xml
        jboss.xml (optional)

Why is META-INF on top of the package/directory structure, instead of in the
interest directory? There will probably be lots of beans in a package
structure. Do the all have to share the same META-INF and, consequently, the
same ejb-jar.xml?


The following sentence from step three in "Beginning...":

"The deployment descriptor must be called ejb-jar.xml and it must be in the
directory .\META-INF."

The dot in .\META-INF of course is the reference to the current directory,
but what is the current directory?

Regards,
Jan Andersson


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to