Child pages
  • User FAQ

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How do I regenerate/rebuild QF/J with a custom data dictionary?

I assume you've already checked out the latest source from the svn repo. You'll need ant installed.

QF/J generates the source from the DDs in core/src/main/resources. Make a back up of the one you're going to alter, and then alter it however you need to.

Then rebuild as follows:

  • ant jar
  • You will be prompted for a release number; this just determines the suffix given to the jar names. Enter whatever you want.
  • Wait for build to finish
  • Find your brand-new QF/J jars in core/target/

I had to altered my data dictionary. Should I regenerate/rebuild QF/J?

...

If your DD changes aren't very extensive, maybe just a few field changes, then you don't really need to. If you added a whole new
custom message type, then you probably should. If you changed field orders inside of repeating groups, then I recommend that you do,
especially if those group changes are in outgoing messages.

...

OUTGOING MSGS: The DD xml file is irrelevant when you construct outgoing messages. You can pretty much add whatever fields you want
to messages using the generic field setters (setString, setInt, etc) and QF will let you. The only trouble is with repeating groups. QF will write repeating group element ordering according to the DD that was used for code generation. If you altered any groups that are part of outgoing messages, you DEFINITELY need to rebuild.

...

If you rebuilt QF/J with your custom data dictionary, there should be a class for your new group and you should do it like the documentation shows you. :
http://www.quickfixj.org/quickfixj/usermanual/1.5.1/usage/repeating_groups.html

...