[JBoss Seam] - Re: How to get conversation ID in portlet
by h.cahyadi
I am not try it yet, but as a description I have two portlet A and B that perform IPC, and I want to get the current conversation ID in potlet B, because every time I click on portlet A that perform IPC to portlet B it creates new conversation, not used the previous conversation, so if I can get the current conversation ID, I can killed previous conversation, so I am not facing memory problem, here is my code for portlet B :
public class BPortlet extends MyFacesGenericPortlet {
public static class Listener implements PortalNodeEventListener {
public PortalNodeEvent onEvent(PortalNodeEventContext context,
PortalNodeEvent event) {
//Listener for IPC
}
@SuppressWarnings("unused")
private static final Log log = LogFactory.getLog(BPortlet.class);
private String viewPage = null;
private String editPage = null;
private String helpPage = null;
@SuppressWarnings("unused")
private FacesContext fContext;
protected void doEdit(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
...
}
protected void doHelp(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
...
}
@Override
public void init() throws PortletException, UnavailableException {
...
}
public void render(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
...
}
protected void setDefaultView() throws UnavailableException {
...
}
@Override
public void processAction(ActionRequest request, ActionResponse response)
throws PortletException, IOException {
log.info((String)request.getParameter("conversationId"));
log.info("{convesationId}");
}
@Override
protected void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
...
}
@Override
protected FacesContext facesContext(PortletRequest request,
PortletResponse response) {
...
}
@Override
protected void facesRender(RenderRequest arg0, RenderResponse arg1)
throws PortletException, IOException {
...
}
@Override
protected ReleaseableExternalContext makeExternalContext(
PortletRequest arg0, PortletResponse arg1) {
...
}
@Override
protected void nonFacesRequest(RenderRequest arg0, RenderResponse arg1)
throws PortletException {
...
}
@Override
protected String selectDefaultView(RenderRequest arg0, RenderResponse arg1)
throws PortletException {
...
}
}
may be you can look at the process action method, I have try to get conversationID but it fails, can you help me with this problem....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997411#3997411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997411
19 years, 3 months
[JBoss Messaging] - Re: Clustering supported with 1.01?
by clebert.suconic@jboss.com
anonymous wrote : I hate to feel this stupid but can't find if clustering is supported with the 1.01 version or if that comes with the 1.2 (or does 1.2 add failover and is clustering already supported).
1.0 + Failover = 1.2
We had 1.2.Alpha with clustering support and 1.2.Beta1 with failover.
anonymous wrote : With MQ we are looking at how to implement a clustered environment where a service might depent on a queue or topic. Before doing all kinds of work, we are also looking at bypassing MQ altogether and instead ship our product based on jboss 4.05 with messaging replacing MQ.
|
We don't have a final clustering version yet. We are working on to get it out on 1.2.
anonymous wrote : With messaging is the provider running on all nodes, or do you need to play with remoting to talk to the one 'master' node? Is there some documentation on this?
|
The new version will use JGroups to communicate to each other's nodes on the cluster. When a client perform a connectionFactory.create it will be load balanced among different nodes.
At this point if you have multiple-servers they are not part of a cluster hence there is no communication between then. (unless you are using 1.2.Beta/Alpha)
anonymous wrote : Again sorry for the newbie questions, this, for me, new environment is great but sometimes also rather overwhelming :-)
|
NP... we are here to help :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997404#3997404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997404
19 years, 3 months
[Beginners Corner] - log4j and Jboss-4.0.5 GA
by lluo
I have a question on using log4j in JBoss-4.0.5 environment. I have "log4j.properties" file under my web application /WEB-INF/classes directory as follows:
# Set root logger level to error, and specify a file appender
log4j.rootLogger=error, File
###### File appender definition #######
log4j.appender.File=org.apache.log4j.RollingFileAppender
log4j.appender.File.File=c:/logs/myApp.log
log4j.appender.File.MaxFileSize=50MB
log4j.appender.File.MaxBackupIndex=1
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=%d{MM/dd/yyyy HH:mm:ss z} %-5p [%c(1)] (%F:%L) %m%n
log4j.logger.com.covisint.hie=DEBUG
But the entry in the log file does not correctly show the file name (Welcome.java) and its line number (see below):
01/02/2007 16:32:52 EST INFO [Welcome] (Log4JLogger.java:94) forward to "Welcome.jsp"
Is there any JBoss configuation I need do to make loj4j works as expected?
Thanks,
Laiwu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997399#3997399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997399
19 years, 3 months
[JBoss Messaging] - Clustering supported with 1.01?
by batter
I hate to feel this stupid but can't find if clustering is supported with the 1.01 version or if that comes with the 1.2 (or does 1.2 add failover and is clustering already supported).
With MQ we are looking at how to implement a clustered environment where a service might depent on a queue or topic. Before doing all kinds of work, we are also looking at bypassing MQ altogether and instead ship our product based on jboss 4.05 with messaging replacing MQ.
With messaging is the provider running on all nodes, or do you need to play with remoting to talk to the one 'master' node? Is there some documentation on this?
Again sorry for the newbie questions, this, for me, new environment is great but sometimes also rather overwhelming :-)
Bas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997397#3997397
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997397
19 years, 3 months