Hi,
in the given thread there was the discussion how to formulate the entries in
the jonas.properties file for the jonas.beans.descriptors.

My question: is it possible to name a bean giving the absolute path.
Besides, I'm running Jonas 2 on Windows NT. It seems that he doesn't accept
absolute paths.
My entry looks like this:
jonas.beans.descriptors c:\mybeans\mybean.xml
 
On server startup it sais: "cannot read the deployment descriptors:
'c:\mybeans\mybean.xml' "

Any idea?

BR,
Marc
__________
Marc Eilens 
mailto:[EMAIL PROTECTED]

>>>>>>begin quotation
Hi Christian, I don't completly understand the various trying you did.
However, I will try to explain how specifying the beans to be loaded at the
JOnAS EJB server launching. 
There is two different cases: 
1- Beans are NOT PACKAGING in an ejb-jar file 
--------------------------------------------- 
In this case, the value of the jonas.beans.descriptors property must be the
name of the standard XML deployment descriptor file. The name of the JOnAS
specific XML deployment descriptor file must be the name of the standard XML
deployment descriptor prefixed by 'jonas-'. (Ex: jonas-account.xml for
account.xml, ../a/jonas-account.xml for ../a/account.xml,
/b/c/jonas-account.xml for /b/c/account.xml). In this case, the classes
(Home interface, Remote interface, Bean class, container classes generated
by the GenIC tool) must be accessible from the CLASSPATH. (Note that the
CLASSPATH is updated in the $JONAS_ROOT/bin/config.env script, which is
called by each JOnAS script (EJBServer, GenIC, ...)). 
2- Beans are PACKAGING in an ejb-jar file 
----------------------------------------- 
In this case, the value of the jonas.beans.descriptors property is the name
of the ejb-jar file. In this ejb-jar file, the standard XML deployment
descriptor must be stored with the name META-INF/ejb-jar.xml, (See the EJB
Specification 1.1, chapter 17); the JOnAS specific XML deployment descriptor
must be stored with the name META-INF/jonas-ejb-jar.xml in the ejb-jar file.
In this case, the classes (Home interface, Remote interface, Bean class,
container classes generated by the GenIC tool) must be stored in the ejb-jar
file. 
In those two cases, the path of the files (XML deployment descriptor or
ejb-jar) is relative to the directory from where the EJBServer is launched.
(i.e. if the jonas.beans.descriptors value is account.xml, the files
acoount.xml and jonas-account.xml must be in the directory from where the
server is launched.) You can check which beans are loaded at the EJBServer
launching by verifying the server traces. When the level trace 31 is on,
(See the jonas.trace.level property in the jonas.properties file), for each
bean loaded, you have the following trace: EJBHome:.......... for <ejb-name>
available I hope this help. 
Bests regards. H�l�ne. 

"Christian Hummer (MADIBA)" wrote: 
...

<<<<<< end quotation

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to