We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#Steps
Add a new project -- Example:
zio-connect/build.sbt
Line 38 in 2507925
Create the following directory structure
zio.connect.jms
Create the connector
sealed trait JMSConnector case class LiveJMSConnector() extends JMSConnector { ... } object LiveJMSConnector { val layer: ZLayer[???, ???, JMSConnector] = { ... LiveJMSConnector() } }
Provide accessors in the jms package object Example: https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/main/scala/zio/connect/file/package.scala
Tests belong in the JMSConnectorSpec file. They use the accessors. Example:- https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/test/scala/zio/connect/file/FileConnectorSpec.scala
There will be a LiveJMSConnectorSpec that runs the JMSConnectorSpec files for the LiveJMSConnector layer Use https://www.testcontainers.org/modules/rabbitmq/ to set up jms Example with testcontainers https://github.com/zio/zio-connect/pull/83/files#diff-e7e0899e455a741a644a05c0b26879d176a9126951477cd7c62dc19ade98b5cc
Provide a TestJMSConnector layer that allows testing with a stubbed jms. Example - https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/main/scala/zio/connect/file/TestFileConnector.scala
The text was updated successfully, but these errors were encountered:
There is a ZIO 1 based JMS connector in https://github.com/blended-zio/blended-zio, more specifically in https://github.com/blended-zio/blended-zio/tree/main/blended.zio.streams/src/main/scala/blended/zio/streams/jms.
It is Apache licensed, ZIO 1 based, so it might be a good start for this connector.
Sorry, something went wrong.
I will have a look at this one
Hi @dnlsur - if you are basing your work on the code I have referenced and have questions, please feel free to touch base
dnlsur
No branches or pull requests
#Steps
Add a new project
-- Example:
zio-connect/build.sbt
Line 38 in 2507925
Create the following directory structure
Create the connector
Provide accessors in the jms package object
Example: https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/main/scala/zio/connect/file/package.scala
Tests belong in the JMSConnectorSpec file.
They use the accessors.
Example:- https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/test/scala/zio/connect/file/FileConnectorSpec.scala
There will be a LiveJMSConnectorSpec that runs the JMSConnectorSpec files for the LiveJMSConnector layer
Use https://www.testcontainers.org/modules/rabbitmq/ to set up jms
Example with testcontainers https://github.com/zio/zio-connect/pull/83/files#diff-e7e0899e455a741a644a05c0b26879d176a9126951477cd7c62dc19ade98b5cc
Provide a TestJMSConnector layer that allows testing with a stubbed jms.
Example - https://github.com/zio/zio-connect/blob/master/connectors/file-connector/src/main/scala/zio/connect/file/TestFileConnector.scala
The text was updated successfully, but these errors were encountered: