[JBoss Seam] - Re: how is DataModelSelection populated
by bfo81
Hmm... I have the following code in my mind:
...
| @DataModel
| private List<WhatEver> whatEverList;
|
| @PersistenceContext
| private EntityManager em;
| ...
|
| @factory("whatEverList")
| public void populateList() {
| whatEverList = em.createQuery("from WhatEver").getResultList();
| }
| ...
So how to come from that java.util.List to a ListDataModel?
Doc:
I agree with you. A growing FAQ list with the possibility of user contribution would be great. Searching the forum often is a mess since the important information is hidden between tons of posts or in threads with misleading titles. In addition to that the search function often delivers you threads that don't contain any helpful information.
Furthermore I suggest a list of "common mistakes". I mean, you often get exceptions and don't know where they come from. Or something just doesn't work the way you want to. And if you find a solution after some cups of coffee why not to record it somewhere? Another one will be grateful not to run that gauntlet again. Your entity in an editor page is null and you get a model update failure? No worries, mate, just add the forgotten @Name annotation to your entity bean and it will work (that's what I ran into today *g*).
Moreover, what about a repository of useful code pieces, templates and patterns contributed by Seam users? Never reinvent the wheel ;). Be it CRUDs or template method patterns for not repeating yourself over and over (like posted yesterday), all this can speed up your development. You're already at home with your loved ones while the Spring coders still sit in the office ;).
I don't demand perfect software for this. The Seam team has enough more important things to do. Little hacks, maybe a speziell moderated subforum, could be sufficient and very very helpful.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957344#3957344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957344
19 years, 9 months
[EJB/JBoss] - JBOSS is crashing..
by augustinm
I have deployed EJB's of my application in JBoss 3.0.8 server. The application is running pretty good. Java.exe usually runs occupying around 200MB of memory. Once in a while, it shoots to 1GB within minutes and the CPU Usage of the server goes to almost 100%. I used Java Service Wrapper to run JBoss as a service. When JBoss shoots to 100%, wrapper usually throws an error "JVM could not get CPU Time for 25 seconds".
After few seconds, server runs out of memory and throws OutOfMemoryException. I enabled the log in DEBUG mode and checked the log when the error happens. There are no suspecting memory leaks in the application. So, it has to be outside of Source Code.
Any help is really apprecited.
Michael.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957340#3957340
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957340
19 years, 9 months