Forum Discussion

John_48565's avatar
John_48565
Icon for Nimbostratus rankNimbostratus
Apr 09, 2010

Weblogic JSESSIONID Persistance Issue

Need help. Newbie to iRules and Weblogic.

 

 

I have an issue with a current JSESSIONID Persistence rule. It is only looking for the existence of the JSESSIONID cookie. I need to be able to look in the cookie and use the values.

 

 

I have 3 Weblogic servers in a cluster that is replicating context in memory. From what I have read, the cookie consists of:

 

 

sessionid!primary_server_id!secondary_server_id

 

 

http://devcentral.f5.com/wiki/default.aspx/iRules/Weblogic_JSessionID_Persistence.html

 

 

The above page provides a detailed iRule, but doesn't give me the ability to look for the secondary_server_id to load balance to. If the primary server fails or is too busy, then it will use the whatever the load balancing algorithm is set to for the virtual server. This is stated in the intro.

 

 

I need it to load balance to the secondary server in the cookie or else the other Weblogic server will not have any of the session information.

 

 

Thanks in advance.

 

 

 

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi John,

     

     

    I started working on a draft rule to do just this. I added the rule in this post (Click Here). Unfortunately, on 10.1 it causes a TMM core. I have a case open with F5 and am waiting on more info. I'll update the other thread once I get an answer.

     

     

    Aaron
  • Thanks Aaron,

     

     

    I just happened to see the other post. It is exactly my issue. I will wait for your update.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi John,

     

     

    I just update the other post with a new version of the iRule. Please check the notes and try it on a test unit first to see if you find any issues.

     

     

    Thanks,

     

    Aaron