-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
AS2 Client - https #53
Comments
Version 2.2.8 was a long time ago :) |
@phax thanks, what's more, may I ask how to add https(ssl_protocol, ssl_keystore, ssl_keystore_password) on AS2ReceiverModule |
I don't fully understand your request. |
@phax yes, I configure AS2ReceiverModule in standalone as2-server which can successfully handle as2(http) request. For https, I add these attributes(ssl_protocol, ssl_keystore, ssl_keystore_password) on AS2ReceiverModule but it does not works with as2(https) |
I must admit I have no idea. Closed by accident |
@phax I enable https service by using tomcat embed in spring-boot. But now I have trouble reusing AS2ReceiverHandler since it use socket io(I can retrieve ServletRequest and ServletResponse from sprint-boot controller). Could you please adivse, thanks |
Well okay, here are some questions: |
I use as2-server at the beginning, find it was using socket io. Shall I turn to as2-servlet?
|
Yes, please switch to the as2-servlet. Spring boot obviously embedds Tomcat, and Tomcat can (to my knowledge) only handle Servlets. |
I turn to as2-servlet now, and regist AS2ReceiveServlet into spring-boot in this way
However it fail to initialze this servlet, and throw the following exception
Could you please advise |
You need an additional bean that requires the ServletContext. WebScopeManager.onGlobalBegin (ServletContext); and for shutdown you need to invoke: WebScopeManager.onGlobalEnd (); hth |
it works now, many thanks
|
I did this but when I register the AS2WebAppListener, it also tries to set the global scope and throws an exception that global scope has already been set |
@kalkrishnan This is preferrably used in the WebAppListener - remove it from the servlet than |
WHen I removed it from the servlet, it again gave me an error of no global scope. I ended up keeping it in my servlet and defining my own listener which doesnt define a global scope and that worked. |
I see as2 client support https but cannot find any api, please advise any example thanks
v2.2.8 - 2016-05-09
Improved AS2 client https customization and API
The text was updated successfully, but these errors were encountered: