Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Way to learn active sessions in SipServlet.

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I wrote a sip servlet. And i want to learn active sessions (active calls) in my Servlet. I found HashMap solution for it. When call start i put the session in to my HashMap and when it's over i remove them.
But i want to know if there is another way to learn active sessions in my Sipservlet. I asked it because my sip servlet may run in different clusters, and may needed to meet High Availability requirements.

Thanks a lot.
 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a listener (I thoink it is SessionActivationListener) that will help do this.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.
i am investigating SessionActivationListener. i'll write the solution.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Michael Ku ,

Thank you for your cooperation.I searched for SessionActivationListener but i couldn't find any results.Did you mean "SipApplicationSessionListener" by saying SessionActivationListener ?
Unfortunately, SipApplicationSessionListener doesn't have any methods for giving active sip sessions or any other sessions.
SipApplicationSessionListener's methods are :
sessionExpired
sessionCreated
sessionDestroyed
sessionReadyToInvalidate
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Michael meant the HttpSessionListener

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SipApplicationSessionListener is not part of the servlet spec.

Can you post the URL for the API you're using?
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using a Eclipse plug-in Ericsson IMS Application Development Tool (SDS).
It gives support for SIP JSR 116 compliant target servers.
I'm running my sip servlet application in open source GlassFish/SailFin server.

Plug-in's web site :
http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1145.html
SIP JSR 116's web site :
http://jcp.org/en/jsr/detail?id=116

Thanks a lot by the way.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I think Michael meant the HttpSessionListener

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html

--------------------

Bosun
SCJP 1.2


So much trouble in the world -- Bob Marley



How HttpSessionListener be a solution for my problem ? It's got only sessionCreated and sessionDestroyed methods. I think they're for notification for session created and ended.I need a active sip session list.
I want sip active calls in my pocket without using hash map.
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic