Skip to content

Conversation

@GregBragg
Copy link
Contributor

@artembilan as discussed here is my first crack at creating documentation in AsciiDoc format for the SMB Adapter module.
Thanks!

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, also consider to rebase your branch to the latest main: I've just added a fix for GH actions where I missed a distribution option for setup-java.

@GregBragg
Copy link
Contributor Author

Please, also consider to rebase your branch to the latest main: I've just added a fix for GH actions where I missed a distribution option for setup-java.

Hopefully I did it right this time... I won't know until I commit the changes I guess.

@artembilan
Copy link
Member

I won't know until I commit the changes I guess.

You just need to push --force even if you don't have fresh changes.

@GregBragg GregBragg force-pushed the Create_Documentation_For_SMB_Module branch from 63f413d to 35cd16a Compare May 9, 2022 18:14
@GregBragg
Copy link
Contributor Author

I won't know until I commit the changes I guess.

You just need to push --force even if you don't have fresh changes.

Yeah I did it wrong the first time, looks good now... Like I said before this is something in Git that we don't normally do at my employ so I am rusty in that regard.

@GregBragg GregBragg requested a review from artembilan May 9, 2022 18:47
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far: I can fix those minor concerns on merge if you'd prefer.

=== SMB Outbound Channel Adapter

For writing files to a SMB share, and for XML `<int-smb:outbound-channel-adapter>` component we use the `SmbMessageHandler`.
In case of Java configuration a `SmbMessageHandler` should be supplied with the `SmbSessionFactory` (or `SmbRemoteFileTemplate`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have reinstate then a ctor in the SmbMessageHandler based on the SmbRemoteFileTemplate, like we have in other FileTransferringMessageHandler impls.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed... do you want to take this on?

For writing files to a SMB share, and for XML `<int-smb:outbound-channel-adapter>` component we use the `SmbMessageHandler`.
In case of Java configuration a `SmbMessageHandler` should be supplied with the `SmbSessionFactory` (or `SmbRemoteFileTemplate`).

[source,java]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wish, there is a way to have the same sample in different modes: XML, Java, Kotlin.
You can find a sample in the amqp.adoc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll need to investigate this... I'm more used to using the Java Bean configuration approach.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Pulling locally for final clean up and merge.

@artembilan
Copy link
Member

Merged as b64e379 after some clean up.

I also added SmbRemoteFileTemplate-based ctors into the SmbMessageHandler.

@GregBragg ,

thank you again for contribution.

Now it is time to look into Java DSL for this module. 😄
See an org.springframework.integration.ftp.dsl package for example.

@artembilan artembilan closed this May 10, 2022
@artembilan artembilan added this to the 6.0 M3 milestone May 10, 2022
@GregBragg
Copy link
Contributor Author

Thanks @artembilan !!! Much appreciated...

@GregBragg
Copy link
Contributor Author

Now it is time to look into Java DSL for this module. 😄
See an org.springframework.integration.ftp.dsl package for example.

Looking into this now, however it will be awhile as I am juggling other priorities at work... stay tuned.

@GregBragg GregBragg deleted the Create_Documentation_For_SMB_Module branch May 22, 2022 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants