4 Replies Latest reply on Dec 11, 2017 10:09 AM by Tamás Matányi

    Managing file connections via HornetQ's resource adapter

    Tamás Matányi Newbie

      I'm trying to find the right way of using HornetQ's resource adapter:

      I have to download files from given URL and wanna use the above mentioned resource adapter for manage file connections.

      How should I do this?

      I don't want to use JMS for this task. Is it possible?

      What steps should I follow to solve this problem?

        • 1. Re: Managing file connections via HornetQ's resource adapter
          Justin Bertram Master

          I have to download files from given URL and wanna use the above mentioned resource adapter for manage file connections.

          What URL?  Can you elaborate on what you mean by "file connections"?

           

           

          I don't want to use JMS for this task. Is it possible?

          The HornetQ JCA Resource Adapter is meant to be used by a JMS client so if you don't want to use JMS then you shouldn't be using the HornetQ JCA RA.

          • 2. Re: Managing file connections via HornetQ's resource adapter
            Tamás Matányi Newbie

            Hello Justin,

             

            We have to download several log files from a server. The content of the logs are changing (expands) so we have to repeat downloads again and again in order to process latest content.

            To do the job we build direct connection (from the bean) between log files and the client. It is working until network connection brakes. And here comes the problem. On breaking connection status goes to inadequate and after connection is restored state keeps inadequate and never will be usable again. So logs with broken connection won't refresh anymore.

            I heard somewhere we should use resource adapter to solve this problem. But I'm not sure if it is helpful. And I don't know hoe to do it.

             

            I don't really understand the architecture of this RA and how to use it for the above mentioned problem.

             

            Regards,

            Tamás

            • 3. Re: Managing file connections via HornetQ's resource adapter
              Justin Bertram Master

              I heard somewhere we should use resource adapter to solve this problem. But I'm not sure if it is helpful. And I don't know hoe to do it.

               

              I don't really understand the architecture of this RA and how to use it for the above mentioned problem.

              My recommendation would be to go back to wherever you heard that you should use a JCA RA for this and investigate further.  JCA is the Java EE Connector Architecture and it's a general architecture for connecting enterprise systems.  The HornetQ JCA RA doesn't have anything to do with downloading server log files.  It's designed so that clients can interact with the HornetQ message broker.