Is there a surefire way to run some code when the application starts up that will behave like a normal request to the server?
I'm trying to query my LDAP server using identityManager during a org.jboss.seam.postInitialization event. It doesn't work for reasons I don't really care to try to fix.
If I put a button in my application and clicked it, firing an event to a seam component, the exact same code would work just fine.
How can I run this code at application startup without dealing with No session context and sundry other headaches?
No session context
Retrieving data ...