E.g. because my EJBs use util classes, which are required on the rich client
(and in the feature possibly on the web app as well). Right now, I've to add
the util classes to the ejb.jar - otherwise I get ClassNotFoundExeptions when
invoking the beans.
OK, perhaps it might work to add a class-path entry into the metainfo and add
all the extension description stuff (simply adding it to the application.xml as
module does not work), but why should it be so complicated? It is much easier,
when the stuff in lib gets picked up automatically,
anlog as more or less good startup files for rich clients already do, which
avoid s a lot of typing, possible typos, maintainance overhead (e.g. when the
version and thus name of a jar changes,
etc.) .
Just in case, here an example, what I mean wrt. to automatic pickup for RCs:
# add in the dependency .jar files
| DIRLIBS=${BASE_DIR}/lib/*.jar
| LOCAL_CLASSPATH=""
| for i in $DIRLIBS ; do
| # if the directory is empty, then it will return the input string
| # this is stupid, so case for it
| if [ "$i" != "${DIRLIBS}" ] ; then
| if [ -z "LOCAL_CLASSPATH" ]; then
| LOCAL_CLASSPATH=$i
| else
| LOCAL_CLASSPATH="$i":$LOCAL_CLASSPATH
| fi
| fi
| done
So I can just add/remove/replace any lib without the need to adjust anything
wrt. "deployment"/startup ...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923069#3923069
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923069
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user