An error occurred while processing the template.
Unable to find resource '1#8431626#50312014'
1#set ($render_default = true) 
2 
3#if ($target_user && ($target_user.getData() != "")) 
4    #parse("$journalTemplatesPath/43631786") 
5 
6    #foreach ($targets in $target_user.siblings) 
7		#set ($instance_id = $targets.instance_id.data) 
8 
9		#foreach ($target in $stringUtil.split($targets.data)) 
10			#set ($portlet_embedded = false) 
11 
12			#if (($target == "random") || ($target == $target_country) || ($target == $target_industry) || ($target == $target_persona) || (($target == "hubspot") && $hs_contact)) 
13				#set ($portlet_embedded = true) 
14 
15				#if ($instance_id == "default") 
16					#break 
17				#end 
18 
19				#set ($render_default = false) 
20				#set ($namespace = "${reserved-article-id.data}-${velocityCount}") 
21 
22				#if ($target == "random") 
23					#set ($articles = $stringUtil.split($instance_id)) 
24					#set ($namespace = $articles.get($mathTool.random(0, $articles.size()))) 
25				#elseif ($instance_id != "") 
26					#set ($namespace = $instance_id) 
27				#end 
28 
29				<div id="embedded-targeted-article-$namespace"> 
30					<runtime-portlet name="$targets.portlet_id.data" instance="${reserved-article-id.data}targeted_$namespace" queryString=""/> 
31				</div> 
32 
33				#break 
34			#end 
35		#end 
36 
37		#if ($portlet_embedded) 
38			#break 
39		#end 
40	#end 
41#end 
42 
43#if ($render_default) 
44	<div id="embedded-targeted-article-default"> 
45		<runtime-portlet name="$default_portlet_id.data" instance="${reserved-article-id.data}targeted_default" queryString=""/> 
46	</div> 
47#end 

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Fateh Alchhabi
how i can make static SessionID for same user for ever
April 5, 2012 2:27 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

i use liferay6.5 clustered with none-sticky load-balancer and i store liferay session in JDBCStore
every thing work fine for me but my problem is i need to make static session ID created for each user
for example when user "test" log in to nod1 new session ID created and if the same user log in to Nod2 new session created so the session replication is losted between the two nods in the clustering, and this caused me problem if on node crashed so the user will log out from the portal
so how i can solve such thing

PS. no plane for now to change the load balancer to Sticky session because we used F5 hardware load balncer
Juan Gonzalez
RE: how i can make static SessionID for same user for ever
April 5, 2012 4:00 AM
Answer

Juan Gonzalez

Rank: Liferay Legend

Posts: 3035

Join Date: October 28, 2008

Recent Posts

You have to enable <distributable/> in web.xml in Liferay. After that, rest of config should be changed in app server side (example: Tomcat) so that J2EE session gets replicated through all nodes.
Fateh Alchhabi
RE: how i can make static SessionID for same user for ever
April 7, 2012 5:12 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

i enable it from the first but it doesn't make any change ,,, new session create it emoticon
Juan Gonzalez
RE: how i can make static SessionID for same user for ever
April 7, 2012 9:13 AM
Answer

Juan Gonzalez

Rank: Liferay Legend

Posts: 3035

Join Date: October 28, 2008

Recent Posts

Fateh Alchhabi:
i enable it from the first but it doesn't make any change ,,, new session create it emoticon



As I've said, now you have to config your server properly.
Fateh Alchhabi
RE: how i can make static SessionID for same user for ever
April 9, 2012 7:08 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

You have to enable <distributable/> in web.xml in Liferay.
After that, rest of config should be changed in app server side (example: Tomcat) so that J2EE session gets replicated through all nodes.


could you provide me with more details about the rest config plz
Juan Gonzalez
RE: how i can make static SessionID for same user for ever
April 9, 2012 7:28 AM
Answer

Juan Gonzalez

Rank: Liferay Legend

Posts: 3035

Join Date: October 28, 2008

Recent Posts

Fateh Alchhabi:
You have to enable <distributable/> in web.xml in Liferay.
After that, rest of config should be changed in app server side (example: Tomcat) so that J2EE session gets replicated through all nodes.


could you provide me with more details about the rest config plz


Nop sorry, that isn't a Liferay question. There are many tutorials around there.