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 408059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:39:20+00:00 2026-05-12T17:39:20+00:00

I have a BlazeDS destination and the scope is set to request. Is there

  • 0

I have a BlazeDS destination and the scope is set to request. Is there a way to get BlazeDS to call destroy() when the request is complete? Is there another way to know when the request is complete?

I know I can use finalize(), but that is only called when garbage collection occurs.

Thanks,
Matt

  • 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-12T17:39:20+00:00Added an answer on May 12, 2026 at 5:39 pm

    After browsing through the BlazeDS source code I figured out how to accomplish this by using a custom adapter. Here is the source.

    package mypackage.adapters;
    
    import java.lang.reflect.Method;
    import java.util.Vector;
    
    import flex.messaging.services.remoting.RemotingDestination;
    import flex.messaging.services.remoting.adapters.JavaAdapter;
    import flex.messaging.util.MethodMatcher;
    
    public class MyAdapter extends JavaAdapter {
        protected void saveInstance(Object instance) {
            try {
                MethodMatcher methodMatcher = ((RemotingDestination)getDestination()).getMethodMatcher();
                Method method = methodMatcher.getMethod(instance.getClass(), "destroy", new Vector());
                if ( method != null ) {
                    method.invoke(instance);
                }
            }
            catch ( Exception ex ) {
                ex.printStackTrace(System.out);
            }
    
            super.saveInstance(instance);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using BlazeDS and Spring Security and have set up my application using
I have BlazeDS running in an instance of Coldfusion 8. A flex chat app
I have a flex application which is configured with blazeds sever and i am
I have a Flex GUI which is using AMF Streaming to BlazeDS on WebLogic
I have an app that uses Spring security and BlazeDS. Flex 3.2 is used
We have a Flex client and a server that is using the Spring/Blazeds project.
has anybody tried using a custom classloader with BlazeDS? We have a web application
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that
I have a set of RESTful web services. These services are protected on a
I have been assigned to work on a Java/Flash/BlazeDS project. When I pull down

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.