The problem was solved by following this approach:
Changes in components.xml
| <core:init debug="@debug@" jndi-pattern="@jndiPattern@" transaction-management-enabled="false" />
|
| <transaction:ejb-transaction/>
|
Now I can use the @PersistentContext from within the application, but what if I want to use the entity manager because I would like to reduce the amount of usage of EJBs. Ideally I would want to inject the entity manager such as:
| @In ("entityManager")
| EntityManager em;
|
Any hints on this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122288#4122288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122288
Yeah, you can build up default to add clustering.
Suggest you start by copying default and making a "cluster" config. This way you'll still have the original clean default to start with.
Then copy jgroups.jar and jboss-cache.jar from all/lib to cluster/lib. If it's there in all/lib and not in cluster/lib also bring over jboss-serialization.jar.
Then see the http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossASTuningSliming wiki page; near the bottom there is a " If you do not use clustering" section. That shows how to remove clustering services from "all". Use that as a guide to tell you what you need to bring over from "all" into your "cluster" config.
Can't guarantee you won't hit some bumps, but that should get you far enough down the road.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122272#4122272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122272
"wachtda" wrote : Peter, that means that it should possible to make a PhaseListener as in JSF?
Yes, this is quite possible, there is just no guarantee on ordering so you should be aware of that.
With the observer, why not base your execution on the phases you are interested in?
@Observer("org.jboss.seam.beforePhase")
| public void beforePhase(PhaseEvent event)
| {
| if(event.getPhaseId() == PhaseId.PHASE_IM_INTERESTED_IN)
| {
| ... ...
|
If you are not interested in the beforePhase of RESTORE_VIEW because the view is not yet restored, just don't process during that phase.
Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122270#4122270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122270
Hi,
I'm currently testing Seam 2.0.1CR1 and introduced those security features in my app. Now everytime an user logs in, there's a FacesMessage "Welcome " displayed.
I traced this message back to "FacesSecurityEvents" where the method "getLoginSuccessfulMessage()" just does this:
public String getLoginSuccessfulMessage()
| {
| return "Welcome, #0";
| }
How can I provide another message or switch this message off?
Thanks in advance
Newlukai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122265#4122265
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122265