Repository navigation
feat(cobol-to-java): CICS TS / TD queues and IBM MQ -> messaging ports and adapters (#3620) - #3705
Merged
Merged
Conversation
…s and adapters (#3620) What the verified skeleton says each queue IS decides what it becomes: - TS queues (scratchpad state: numbered items, re-read, rewritten, deleted whole) -> a TempStorage port, in-memory like one region's TS; - TD queues, routed by destination: a CICS-supplied log (CSSL, CSMT, ...) -> SLF4J; an extrapartition destination the CSD binds to a DD / dataset -> a file sink, flagged when it is the internal reader (JCL: a job submission, #3622); an installation symbol (`@tdq@`) -> a TODO; else intrapartition -> the message port; - MQ -> the MessageQueue port: MQPUT / MQPUT1 send, MQGET receives. A program whose MQGET reads its trigger message's queue gets handleMqMessage(request, replyTo), and with jms / kafka a generated listener; MQPUT1 to MQMD ReplyToQ goes to `replyTo`. New config integration.messaging (in-memory | jms | kafka; default in-memory) picks the adapter (JmsTemplate + @JmsListener via the Artemis starter; KafkaTemplate + @KafkaListener via spring-kafka) and its dependency. Each EXEC CICS / MQ site gets a service helper citing its line, record, route and producer / consumer peers (queue_flows / mq_flows). A literal ITEM(n) is fixed; a data-driven queue name becomes a parameter with a TODO. Everything is in the traceability manifest; a new worklist category, "Data-driven queue names". Compiles: 51/51 (CardDemo, GENAPP, zECS x 17 configs incl. messaging-jms / messaging-kafka-plain). Runtime-tested in generated projects: JMS (embedded Artemis, the full app booted on H2: triggered request -> handleMqMessage with its reply-to, port round trip, TD routing to log and file); Kafka (embedded broker: request topic -> handler, port round trip); TS semantics (GENAPP). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3620. Part of #3625.
What each queue becomes, and why
The six reference estates showed that "queue" means three different things, so the verified facts decide the mapping:
GENACNTL, shared by 4 programs)TempStorageport, in-memory, one store per application (as one region shares its TS)CSSL,CSMT, …cics.td.<queue>JOBS(CardDemo)DDNAME(INREADER): the internal reader@tdq@(zECS)MessageQueueport andhandleMqMessage(request, replyTo)New config key
integration.messaging(in-memory|jms|kafka, defaultin-memory) picks theMessageQueueadapter and its dependency:JmsTemplate, and an@JmsListenerper triggered program;spring-kafka,KafkaTemplate, and an@KafkaListenerper triggered program.For a triggered program the listener hands the body and reply-to to the service. JMS takes
JMSReplyTo; Kafka uses<request topic>.reply, since Kafka has no reply-to queue. The request queue comes from the trigger message, so it's a property (gitgalaxy.mq.<program>.request-queue), documented as such.Per site: every
EXEC CICS WRITEQ / READQ / DELETEQand MQPUT / PUT1 / GETgets a service helper citing:queue_flows/mq_flows(e.g. "Shared through TS GENACNTL: written by lgsetup.cbl, lgtestc1.cbl").A literal
ITEM(1)is baked in, andITEM(WS-N)becomes a parameter. A data-driven queue name becomes a parameter with a TODO. COACCT01 replies to itsMOVEdCARD.DEMO.REPLY.ACCT; COPAUA0C'sMQPUT1goes to the request'sreplyTo. Payloads are the COBOL record as text.Evidence
messaging-jmsandmessaging-kafka-plain). Preflight now also compiles CardDemomessaging-jms.Coacct01Service.handleMqMessage("…", "CARD.DEMO.REPLY.ACCT"), the port sends and receives, CSSL goes to the log, and JOBS's JCL lands in the file sink.<topic>.reply, and the port round-trips.messagingpackage plus the services of queue-using programs change (CardDemo 4, GENAPP 6, zECS 3). CBSA, zopeneditor and DSF are unchanged.test_messaging.pyruns a real scan covering TS write, rewrite, read-item and delete, a producer/consumer pair, a data-driven name, CSSL, the internal reader (CardDemo's own CSD definition),@tdq@, and a triggered MQ service with MQPUT and MQPUT1-to-reply-to, across all three adapters, plus the config check, manifest and worklist.Paper trail
traceability.json:queue-op,mq-opandmq-triggerentries.🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g