There is something important I forgot to say in that conclusion above:
MAKE IT SERIALIZABLE ;)
I did not succeed in running a Seam component converter with an EntityManager in it without making the class serializable. And I tried all combinations of scopes and interceptors.
But that is something which is important for all your Seam Component or EJBs. Everything needs to be serializable. And if your bean has properties that do not implement Serializable, make them transient! Just for the sake of completeness :).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966659#3966659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966659
And now I have my CountrySelect class working, I figured out that instead of returning a Map, it needs to return a List of SelectItems. So I got that done. Then I found out that, because I'm using an enum for my Country, I need to write a Converter for that. Which turned out to be very easy to do, and within a few minutes I had my enum countries working, displaying a select list, etc. So a good select list on the HTML side, and correct Java style on the Java side (using an enum instead of a bunch of strings). And then I set the EnumType.STRING, so it saves it in the DB as a country code string. It's pretty amazing when all this stuff works.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966657#3966657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966657
"asack" wrote : Have you read the log4j WIKI pages? :D
Thank you for the hint!
The log4j WIKI pages have a topic "help with usage of logging levels". This advises you to put an entry like
<category name="org.jboss.resource">
| <priority value="DEBUG"/>
| </category>
into your log4j.xml to set the logger level to DEBUG.
I made this changes to log4j.xml. But still JBoss suppresses DEBUG messages after a restart generated by my application. Do I use the wrong subsystem?
If I am changing the value of Threshold in the default CONSOLE appender to DEBUG, JBoss gives out DEBUG messages to the console. But these are plenty of messages that probably will blockade JBoss.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966656#3966656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966656