-
1. [JBoss 6.1] How to disable unused stuff
mlo May 3, 2011 11:29 AM (in response to mlo)I turned on debug traces and :
17:19:21,346 DEBUG [BeansDeploymentAopMetaDataDeployer] Finished deploying AbstractVFSDeploymentContext@13547055{vfs:///E:/MLO/Work/applications/jboss-6.0.0.Final/server/default/deploy/transaction-jboss-beans.xml}
17:19:52,165 DEBUG [MappedReferenceMetaDataResolverDeployer] vfs:///E:/MLO/Work/applications/jboss-6.0.0.Final/server/default/deploy/DS_COTS.jar endpoint mappings:
We can see that there is 31 seconds between these 2 traces...
DS_COTS.jar is an archive which contains all the needed jar for our application...
-
2. [JBoss 6.1] How to disable unused stuff
wdfink May 3, 2011 1:52 PM (in response to mlo)It will be difficult to decide whether you statr with minimal and add Hornet+EJB2 or use default and remove all what you did not need.
I suggest to start with min, add ejb2 deployer (you might look what you can remove from deploy in case of sliming ), after that I think you have to add some libs because of ClassNotFoundExceptions.
After that add HornetQ deployables and fix similar.
helpful will be
http://community.jboss.org/wiki/JBoss5xTuningSlimming and
http://community.jboss.org/wiki/JBossASTuningSlimingI'm not sure whether an extreme sliming will have a big benefit of startup time and resource use ...
-
-
4. [JBoss 6.1] How to disable unused stuff
mlo May 4, 2011 9:57 AM (in response to mlo)I found out a good thing
In the file JBOSS_HOME/server/default/deployers/scanning-deployers-jboss-beans.xml, we can specify ignored JARs for annotation processing.
I added to the list of ignored JARs my JAR, and it's Ok !!!
-
5. [JBoss 6.1] How to disable unused stuff
jaikiran May 4, 2011 10:03 AM (in response to mlo)You have multiple jar files within some other jar file?
-
6. [JBoss 6.1] How to disable unused stuff
mlo May 4, 2011 10:20 AM (in response to jaikiran)Yeah you're right !
-
7. Re: [JBoss 6.1] How to disable unused stuff
kennardconsulting Sep 14, 2011 8:24 AM (in response to mlo)Hi mlo,
Could you please explain what you did to "specify ignored JARs" in scanning-deployers-jboss-beans.xml? I believe I'm having the same problem but can't find any documentation on doing this.
Regards,
Richard.
-
8. Re: [JBoss 6.1] How to disable unused stuff
mlo Sep 15, 2011 8:29 AM (in response to kennardconsulting)Hi !!
In scanning-deployers-jboss-beans.xml we just added something like :
<bean name="JBossCustomDeployDUFilter" class="org.jboss.deployers.vfs.spi.structure.helpers.VirtualFileDeploymentUnitFilter">
<constructor>
<parameter>
<bean class="org.jboss.vfs.util.FileNameVirtualFileFilter">
<constructor>
<parameter>
<map keyClass="java.lang.String" valueClass="java.util.Set">
<entry>
<key>deployers/</key>
<value><null/></value>
</entry>
<entry>
<key>jbossweb.sar</key>
<value><null/></value>
</entry>
<entry>
<key>OurJar.jar</key>
<value><null/></value>
</entry>
-
9. Re: [JBoss 6.1] How to disable unused stuff
kennardconsulting Sep 15, 2011 10:48 PM (in response to mlo)Okay great I'll give that a try.
Thanks,
Richard.