-
1. Re: Upgrade to jboss-4.0.4.GA-ejb3
gavin.king Apr 5, 2006 11:53 AM (in response to lcoetzee)I had better try this stuff, and upgrade Seam to the latest release of EJB3.
I'll try to work on it today. -
2. Re: Upgrade to jboss-4.0.4.GA-ejb3
lcoetzee Apr 5, 2006 12:02 PM (in response to lcoetzee)Cool... fortunately it is now evening here. Time for a beer me thinks ;-)
I have stepped into it a bit.. seems that there is a problem getting the seam managed persistence context. I get an exception on line 51 in org.jboss.seam.core.ManagedPersistenceContext for my java:/EntityManagerFactories/napEntityManagerF as defined in my web.xml
L -
3. Re: Upgrade to jboss-4.0.4.GA-ejb3
mirko27 Apr 5, 2006 12:08 PM (in response to lcoetzee)lcoetzee how do you acoomplish following:
Every time a user hits my seam application he`s or her`s locale is set to ee? Seam offers component level default locale, but how to go in session level locale? -
4. Re: Upgrade to jboss-4.0.4.GA-ejb3
sunfire Apr 5, 2006 12:18 PM (in response to lcoetzee)"lcoetzee" wrote:
2. What does the GA mean ? Is this in line with the Hibernate 3.2.0.CR1 release ?
Usualy (I am not sure about JBoss tho) GA means "General Availability" and is used to flag a "final" and production ready release after a bunch of "Release Candidates" (or in the new JBoss terms "Candidates for Release"). -
5. Re: Upgrade to jboss-4.0.4.GA-ejb3
gavin.king Apr 5, 2006 12:21 PM (in response to lcoetzee)OK, so the situation is that JBoss AS has gone out with a CVS build of EJB3 that integrates the latest release of HEM (which reflects changes to the EJB spec). But, since Bill is on vacation this week, there is no EJB3 release.
Since I have to target the standalone EJB3 package, I can't upgrade to the JBoss 4.0.4CR release, so people are going to have to tough it out on 4.0.4RC1 for a while longer, until Bill gets back and does a release of EJB3. -
6. Re: Upgrade to jboss-4.0.4.GA-ejb3
starksm64 Apr 5, 2006 1:42 PM (in response to lcoetzee)"SunFire" wrote:
"lcoetzee" wrote:
2. What does the GA mean ? Is this in line with the Hibernate 3.2.0.CR1 release ?
Usualy (I am not sure about JBoss tho) GA means "General Availability" and is used to flag a "final" and production ready release after a bunch of "Release Candidates" (or in the new JBoss terms "Candidates for Release").
There should be no doubts:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossProductVersioning -
7. Re: Upgrade to jboss-4.0.4.GA-ejb3
starksm64 Apr 5, 2006 1:45 PM (in response to lcoetzee)"lcoetzee" wrote:
Hi,
this might be jumping the gun a bit (but then again I like the bleeding edge ;-). Some of it might not be related to Seam itself, but as I am trying to get my Seam app working again this might be the most appropriate forum.
I did a cvs update of the JBoss tree that I have been using to build my own latest and greatest jboss (jboss-4.0.x).
The latest build revealed two different versions:
1.
jboss-4.0.4.GA and jboss-4.0.4.GA-ejb3. Does anybody know what the difference between these two builds are ? (I have browsed the various forums, but haven't been able to find usefull info)
See:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=80196 -
8. Re: Upgrade to jboss-4.0.4.GA-ejb3
lcoetzee Apr 6, 2006 6:52 AM (in response to lcoetzee)how do you acoomplish following:
Every time a user hits my seam application he`s or her`s locale is set to ee? Seam offers component level default locale, but how to go in session level locale?
I haven't looked at the latest Seam support for the various locales. Most likely I will have to refactor my code to use the Seam approach. In my implementation I had to extend the JSF ViewHandler and over ride the caclulateLocale method. Based on a property in session context indicating the user's chosen locale one can then return the desired locale. Something like the following (this is just code from memory... not tested) (UserEnvironment might contain useful information such as the users roles, locale, preferred view options etc. populated after login ):public class I18nViewHandler extends ViewHandler { .... @Override public Locale calculateLocale(FacesContext arg0) { Locale locale = null; userEnvironment = (UserEnvironment)Component.getInstance("userEnvironment",true); //use the userEnvironment value locale = userEnvironment.getLocale(); if (locale != null) { return locale; } else { return baseViewHandler.calculateLocale(arg0); } } ......
Obviously you have to register this new viewhandler in you faces-confic.xml:<application> <message-bundle>nap</message-bundle> <locale-config> <default-locale>en</default-locale> <supported-locale>af</supported-locale> <supported-locale>zu</supported-locale> </locale-config> <view-handler>csir.utils.viewhandler.I18nViewHandler</view-handler> </application>
Regards
Louis -
9. Re: Upgrade to jboss-4.0.4.GA-ejb3
mirko27 Apr 6, 2006 7:10 AM (in response to lcoetzee)Thank you louis. Maybe we could share our IM passports? Would be good to talk about something real fast sometimes.
-
10. Re: Upgrade to jboss-4.0.4.GA-ejb3
lcoetzee Apr 6, 2006 7:41 AM (in response to lcoetzee)share our IM passports
Unfortunately this would be difficult. I sit behind several firewalls blocking all of the instant messaging protocols (including irc). This forum works well for me though. -
11. Re: Upgrade to jboss-4.0.4.GA-ejb3
gavin.king Apr 6, 2006 7:43 AM (in response to lcoetzee)"lcoetzee" wrote:
I haven't looked at the latest Seam support for the various locales. Most likely I will have to refactor my code to use the Seam approach. In my implementation I had to extend the JSF ViewHandler and over ride the caclulateLocale method. Based on a property in session context indicating the user's chosen locale one can then return the desired locale.
Yes, this is pretty much how the Seam localization stuff works. Except Seam also exposes a built-in component that you can expose directly to your JSF page to do locale switching from the UI.