[JBoss Eclipse IDE (users)] - Re: How contribute to Freemarker plugin and add my Plugin ec
by max.andersen@jboss.com
"azerr" wrote : anonymous wrote : Please send a *patch* and not just an updated plugin.
|
| I have sent you my Freemarker updated, because I would like that you see my new feature and that you validate it. I have change a lot of code like package name, so I'm waiting for your validation.
|
Yes, I received it; but please send it as a *patch*.
anonymous wrote :
| anonymous wrote :
| | Hibernate tools can also generate different artifacts; nothing special about that.
| I agree with you, but when you want generate any component, you must respect some rules, like have java classes bean in your project. Imagine you want generate components for PHP, Hibernate mapping is used to get metadata of your database (with Hibernate Tools), BUT you need not to have Bean classes when you want generate components like PHP page.
|
You only need the java classes in your project if you haven't specified all the types of your mapping files. e.g. when you generate pojo's you just need the mapping files - no classes; otherwise hbm2java could not be possible.
anonymous wrote :
| If you want use others XML model, like XMI, WSDL, ... is it possible to use Hibernate Tool for generate component without XML mapping hibernate but with WSDL, XMI,... XML models?
|
| anonymous wrote : ditto for Hibernate Tools.
| I'm sorry, I don't understand what you mean? Is it possible with Hibernate Tools, to generate Bean, DTO and Assembleur (which transform Bean to DTO and DTO to Bean)?
|
We don't have those implemented (except "bean), but nothing in the tools prevents it.
anonymous wrote :
| anonymous wrote : In Hibernate Tools these are called "Exporters"; we don't have a generic way of describing them but if someone wants to add it feel free ;)
| Akrogen is not bulk generator. When you develop a new CRUD Form, you want generate ONLY components for this form (just the ActionForm for instance, because others developpers has for instance already developped another components that you don't want generate), sometimes, you want update name of your CRUD form, sometimes you want update others parameters. Hibernate Tools is bulk generator, Akrogen is not bulk generator. It generate ONLY the component for a XML model that you need.
|
| If you take the functionnality Source/Generate getter/setter in the Eclipse, you can checked the getter/setter that you want generate and not all the getter/setter of your class. Akrogen have the same goal.
|
I don't get your "bulk" argument here ? Hibernate tools defaults to generate for all entities and components but that can of course be controlled by the exporter if you want to.....and adding a "generate only *this* part" is of course possilbe....
If I understand your docs at http://akrogen.sourceforge.net/generation/wizard.html you have some nice wizard page generation which if I understand it correctly is something that would be nice to have for our Exporters (today we "just" have an table where you can set the property values)
This page http://akrogen.sourceforge.net/generation/component.html I
don't get ...the template looks waay more complex than what I would think is necessary....but maybe I just don't believe in too generic code generation ;)
tip: If you want users to understand Akrogen features you should try and document it with some better examples, the current page is very sparse on information.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995516#3995516
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995516
19 years, 4 months
[Persistence, JBoss/CMP, Hibernate, Database] - Possible memory leak
by S0d0
Hi,
We are getting OOMEs running our application.
We have processed java heap dumps using
IBM Heap analyzer for their JVM.
It finds leak suspect org.hibernate.cfg.Settings.
If someone is able to look whole heap dump, I can send it.
Could somebody tell me why there is so many
instances of org.hibernate.cfg.Settings and
how to get rid of them? :)
| 21 304 592 [216] 49 array of EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap$Entry 0x93177138
| 21 302 216 [40] 3 EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap$Entry 0x93090030
| 21 301 936 [240] 48 org/jboss/ejb3/stateful/StatefulContainer 0x92a117a0
| 20 657 472 [40] 5 org/jnp/interfaces/NamingContext 0x92a12c68
| 20 262 616 [40] 4 org/jnp/server/NamingServer 0x92a12770
| 20 261 936 [56] 2 java/util/Hashtable 0x92a12790
| 20 261 880 [32] 3 array of java/util/Hashtable$Entry 0x92a127b8
| 20 261 176 [40] 4 java/util/Hashtable$HashtableCacheHashEntry 0x954b6070
| 20 258 640 [48] 4 javax/naming/Binding 0x954b6050
| 20 258 592 [32] 3 org/jnp/interfaces/MarshalledValuePair 0x954b5e20
| 20 258 296 [40] 3 org/jboss/ejb3/BaseSessionContext 0x954b5e08
| 20 257 888 [112] 9 org/jboss/ejb3/stateful/StatefulBeanContext 0x954b5d78
| 11 653 656 [64] 4 java/util/HashMap 0x954b6df0
| 11 653 528 [24] 2 array of java/util/HashMap$Entry 0x954b6e20
| 11 653 504 [40] 3 java/util/HashMap$Entry 0x954b6e70
| 11 653 464 [64] 7 org/hibernate/ejb/EntityManagerImpl 0x954b60c8
| 11 643 048 [144] 25 org/hibernate/impl/SessionFactoryImpl 0x92b56548
| 5 782 520 [200] 14 org/hibernate/cfg/Settings 0x935c31b8
| 3 820 536 [40] 4 org/hibernate/engine/query/QueryPlanCache 0x935f84f8
| 1 389 712 [304] 100 class org/hibernate/impl/SessionFactoryImpl 0x35f2a360
| 549 256 [64] 3 java/util/HashMap 0x93854eb8
| 71 872 [144] 30 org/hibernate/event/EventListeners 0x92b56f30
| 9 432 [56] 2 java/util/Properties 0x935fab28
| 5 416 [40] 2 java/util/Collections$UnmodifiableMap 0x93869990
| 3 656 [64] 2 java/util/HashMap 0x93869b30
| 3 112 [24] 1 org/hibernate/ejb/Ejb3Configuration$Ejb3EntityNotFoundDelegate 0x92a73918
| 1 496 [280] 6 org/hibernate/stat/StatisticsImpl 0x935f7480
| 1 280 [32] 3 org/hibernate/context/JTASessionContext 0x9366bc88
| 1 176 [64] 2 java/util/HashMap 0x935fcb18
|
Br,
Juha Moisio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995515#3995515
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995515
19 years, 4 months
[Installation, Configuration & Deployment] - Re: Deploy a web application on JBoss
by inderjeet
Thanks to all of those who helped me to solve my problem.
Peter, I tried to search method by the name of "Invoke", but there is no invoke method in the MainDeployer MBean.
As per kennychaffin and your, suggestion, i am not going for application across network, but I just wanted to see this working once. Therefore i tried to search for the invoke method but could not fined out. I found methods like addDeployer(), removeDeployer(), deploy(), getDeployment(), getWatchUrl(), isDeployed(), listDeployed() etc...
Thanks & Regards
Inder Jeet Singh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995508#3995508
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995508
19 years, 4 months