Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6658117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:51:14+00:00 2026-05-26T01:51:14+00:00

My project is to create a webservice which would connect to a XMPP server

  • 0

My project is to create a webservice which would connect to a XMPP server and serve as a bridge to send messages to XMPP clients (WS calls -> XMPP messages). Recently, I thought about creating a single connection, which would be shared across all requests (-> my previous question).

But, I was told to create something which would be more scalable and to think about connection pooling. I found a very useful piece of code here. But, I am afraid of memory leaks in Tomcat container – I’ve read too much about it;) Here, I’ve got few questions:

  1. If I specify that library as a resource, it is automatically created during context initialization. What about memory leaks after e.g. server shutdown? They aren’t destroyed automatically, are they? I understand that I should destroy it manually, creating a ContextListener, but what should I call?
  2. If I put into resource definition

     removeAbandoned="true" removeAbandonedTimeout="60"
    

    will it help to destroy zombie connections from the pool? Is it a correct solution or just a sort of recovering after a disaster?

Any help will be much appreciated, thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:51:15+00:00Added an answer on May 26, 2026 at 1:51 am

    If you shut down the server, then you’re shutting down the JVM, and resource leaks won’t matter. The only memory leaks you’ve likely read about in relation to Tomcat is the PermGen problem, which plagues webapp development in general. Don’t worry about the connection pool. It’ll take care of itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing with the project ap pengine-rest-server to create the REST webservices for all
I have a project to create a program, which prevents the user from escaping
I´m trying to use a Webservice in a .Net Compact Framework 3.5 Project which
In ZF you create a project by running this command: zf create project MyProjectName
I've been assigned a project to create a file storage service on Google App
It seems to be added automagically in every project I create and I compile
I'm using Lightwindow v2 in a Symfony project to create a modal window (
So for my programming class we have had a project to create a virtual
I'm trying to learn how to use lift. I can create project skeleton by
i create some project but when start App. How to Run this App one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.