[JBoss Portal] - Re: Cannot retrieve user: Unable to locate current JTA trans
by kpalania
"So in your case I would recommend using a Tomcat Valve to process your authentication and set up the Subjects the way JAAS does it inside Tomcat. "
Is this my ONLY option? I am not familiar with either how Tomcat valves work, or how subjects are set inside Tomcat, so it might be a little painful to get this done in a day or so :(
"btw- why can't you re-use JBoss Portal's JAAS mechanism and just plug in your own LoginModule for your application specific authentication logic? "
Could you elaborate on this? I've implemented a number of custom login modules that are stacked. I was able to authenticate the users against this security realm SO LONG as I used container managed authentication and j_security_check. Everything worked fine. But, I need to move away from that and explicitly initialize the LoginContext (using the same security realm) due to some other reason and that is where things are not working.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071404#4071404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071404
18Â years, 8Â months
[JBoss Portal] - JBoss Portal : Best Practices
by explorer
Can any one help me out in understanding what are the best practices in developing a JBoss portal application.
1) Is it good to alter portal.sar's defualt-object.xml for making your portal default.
2) Is it good to deploy your web application in jboss-portal.sar.
3) Is it good to have your own portal.sar.
4) Is it good to have your portal.sar outside the jboss-portal.sar.
5) Is it good to have our own Header Portlet, instead of altering the header.jsp/tabs.jsp
6) Whats the best way to generate bread crumbs. Making it as a portlet?
7) If we have our-own sar going into jboss-portal.sar, how to hot deploy.
I have some EventListeners which need to be registered through jboss-service.xml and so i happened to put them in my own sar and put it under deploy of jboss server.
But i am facing some issues in there.
One unique issue is when i am trying to access Navigation.getPortalRuntimeContext(), some times it works fine and somtimes.. It throws me a NullPointerException.
Is it something to do with my sar being outside.
any ones explination on these issues is highly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071401#4071401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071401
18Â years, 8Â months
[Beginners Corner] - JBoss Integration with Predeveloped Java NIO Sockets Client/
by formula1raceking
Here is a message from one of my colleagues at work:
This question keeps appearing and keeps getting worked around, but I think this time we?re not going to be able to avoid it:
TomW is going to be implementing an ITransport that uses sockets directly. It will listen on a port to receive files, and will bind directly to a port to send files.
The catch is, it is going to have to communicate with components that are running inside JBoss.
We can?t pull all of the components into JBoss so everything is running in the same VM ? not unless Tom writes his component as a JBoss service.
Considering the goal here is to squeeze out as much performance as we can, we probably don?t want to have inter-JVM communication happening via SOAP? I?m not sure whether EJBs make sense, either. But this is something we have to solve before we go too far into implementing something we don?t know how to integrate.
Thoughts? Miracles?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071395#4071395
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071395
18Â years, 8Â months