[JBoss Seam] - Problem with passivation/activation
by mbolcina
I have SFSB on SESSION scope. SFSB looks like this:
| @Stateful
| @Scope(ScopeType.SESSION)
| @Name("dnListBean")
| public class DnListBean extends ListManagerSimple<Dn> implements DnListLocal
| {
| private Long resultCount;
| private List<Dn> resoultList;
|
| @PrePassivate
| public void prePasivate()
| {
| System.out.println("DnListBean.prePasivate()");
| System.out.println("resultCount="+resultCount);
| }
|
| @PostActivate
| public void postActive()
| {
| System.out.println("DnListBean.postActive()");
| System.out.println("resultCount="+resultCount);
| }
|
| ...
| }
|
Problem is that when SFSB gets passivate (after some time if user does nothing on page) and then back activate (after user for eg. refresh page which uses this sesssion bean) all data is lost.
Here is log from console:
| 09:14:02,021 INFO [STDOUT] DnListBean.prePasivate()
| 09:14:02,022 INFO [STDOUT] resultCount=64
| 09:14:33,674 INFO [STDOUT] DnListBean.postActive()
| 09:14:33,674 INFO [STDOUT] resultCount=null
|
Am I missing something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049992#4049992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049992
17 years, 6 months
[JBoss Portal] - Problem in image loading from local machine
by ritesh_sanjay
Hi,
I have html code embedded in one of my jsp portlet and that page contains some images to be loaded from local machine but it's not loading actually.I have tried different -2 path giving for images and even tried putting images in all the folder to check from where it's picking up.
But that also seems not working.
When I give like this
it loads the image properly, only problem comes when I try loading image from local machine.
My JSP Page Code below :
<%@ page info="a hello world example" %>
Hello, World
<h1>My Support</h1>
An image from another folder 111:
<h1 style="font-size:180%; line-height:1.2em; color:#aaa; margin-bottom:20px;">Welcome to your personalized Apple Support Page</h1>
Add your Apple products to this page to see your warranty coverage and service status at a glance.
You can also easily get to online support information for your products.
An image from another folder 222:
An image from another folder 333:
An image from W3Schools:
Please suggest.
Thanks!
Ritesh.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049982#4049982
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049982
17 years, 6 months