Hi,
We have a need to generate code bindings from DB/2 on z/OS. So far we've been doing it by copying the schema from the z/OS database into a DB/2 LUW, then running the code generator against the LUW. We've had to do this because the jooq is coded to use the SYSCAT catalog, present on LUW but not on z/OS.
I'm looking for alternatives to this process. Came up with a few ideas, but I was wondering if anyone else has solved this problem or has some different recommendations?
Any thoughts or guidance would be appreciated.
Thanks,
Jeff
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Lukas,
Thanks for the prompt reply, and apologies for my delay, had some customer issues divert me for a bit.
I liked option four best, the JDBCDatabase as a source for the codegen, with option six, a full DB2 z/OS implementation a close second.
When I tried option four, however, it ran an exceptionally long time before I stopped it and figured out what was happening. The input side of reading the catalog metadata, with MetaImpl, does not have any filtering applied, so it was trying to read our entire catalog of 20+ schema, many having over 180 tables each, before generating code. Remote over a VPN, it wasn't a fast process.
I made some local only edits to put in a filter and it ran in four minutes with perfect output.
Could we put in a feature request to filter the catalog reading by a schema regular expression, much as the output side generation has?
Option six, a full DB2 z/OS database class, remains tempting, though we've had utterly no problems with generating from DB2 LUW and shipping to our customers the generated code for the runtime. Multiple production deployments against DB2 z/OS, no troubles whatsoever, kudos to you for that! I'll talk over the potential effort/reward balance with management and email you directly what we might look at on this option.
Thanks,
Jeff