Closed GeeinHub closed 2 years ago
I looked at your configuration and it seems to be okay.
I am however not sure if D:/gitrepo/as2-lib-spring-demo/data/toopenas2a/
works, or whether it would be better to use D:\gitrepo\as2-lib-spring-demo\data\toopenas2a\
.
For enhanced debugging I recommend to turn up the log level of Log4J from info
to debug
and see, if some polling takes place.
Hi Philip, It seems All instances of AbstractActiveModule are started by AS2ServerXMLSession in the main method of MainOpenAS2Server, it's not included in as2-lib or as2-servlet, so the AS2DirectoryPollingModule will not start in currnet as2-servlet apps, the AS2ServletXMLSession loads the MessageProcessor, but it doesn't start all active modules, so far, I haven't found a way to acquire the AS2ServletXMLSession in my app code and I guess it's designed for internal use?
Okay, I think I got it. There are imho 2 things in the current version:
/as2
or /as2mdn
for the first time andI made the necessary adjustments in the as2-demo-spring-boot application and pushed a new version of 4.8.0-SNAPSHOT
to Maven Central for Snapshots. Please verify if that works for you too.
A few more things relevant to your configuration example:
errordir
and sentdir
cannot be parameterized until v4.8.0 - so this is new :)stored_error_filename
and stored_sent_filename
are currently unsupported - let me see what I can doIt's your lucky day ;-) Both parameters stored_error_filename
and stored_sent_filename
are now supported (with msg
and date
parameters available). The latest SNAPSHOT is pushed...
Hi Philip, Thank you so much for such quick upgrade, yes, following the latest sample, the polling module can start successfully, and with AS2SenderModule, message can be sent to my OpenAs2Server successfully. Regarding stored_error_filename and stored_sent_filename, I just copied the config from OpenAs2Server, didn't realize the problem, thanks again. :-D 👍
Okay cool. so this issue can be closed. Release 4.8.0 coming soon
Hi Philip, I started the as2-lib-spring-boot, and it can receive msg from openas2 server, can also send msg using the AS2Client, then I tried to send via polling , added polling module config as below:
but seems the module not running, although loaded.
[10:21 13:53:08.497] [DEBUG] [com.helger.as2lib.util.AS2XMLHelper] - Finished initializing [[com.helger.as2lib.processor.receiver.AS2DirectoryPollingModule@2c60ce47]; Running=false] [10:21 13:53:08.497] [INFO] [com.helger.as2servlet.util.AS2ServletXMLSession] - Loaded processor module AS2DirectoryPollingModule
could you please advise how can I do? Thanks