Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

QuickfixJ Message serialize and deserialize

Ranch Hand
Posts: 579
jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am working on a task where I have to serialize and deserialize Fix Message to send it through a queue.

Is there any way to do it?
Ranch Hand
Posts: 259
Android Angular Framework Spring AngularJS Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Ravi:

There are actually a lot of ways to do it.  I do not know what a "Fix Message" is, but you can serialize things using:
* Object Output Stream / Object Input Stream (aka Java Serialization)
* Google's Protobuf (with Protostuff for convenience).
* Your own design

The first one requires Java, specifically.  The next one requires interoperability with ProtoBuf (Java, C, etc.).  The others you can use with any language.  What you are doing in the last three cases is pushing a string into the queue, and having both sides 'know' what to do with it and how to convert it.

I do not know what kind of queue you are looking at.  But there are several queueing technologies out there.  Another post on this site ponted me to Queues IO, which has a long list.

Good luck.
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!