[jpos-users] JSON / YAML and Kotlyn support?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jpos-users] JSON / YAML and Kotlyn support?

EdPimentl
Hello Jpos and Everyone!!!

Very impressed with the new Jpos Tutorial and others comments and contributions.

Would like to humbly ask if in the future we can expect JSON, YAML and Kotlyn support.

Thanks in advance and best regards,
-E

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CANMSB1ZeCMq6DCjjXpcmRgoBLRphaG3-p-ZvOXddH1kx6emDSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] JSON / YAML and Kotlyn support?

Alejandro Revilla
Glad you liked the tutorial.

Just added a Tutorials page to the jPOS site (http://jpos.org/tutorials) and it's kind of short, so I guess we'll have to write more of those :)

Regarding your questions, I believe they are very abstract Ed, what do you mean by "JSON" support? Using JSON to configure stuff? using JSON as wire format? Same for YAML. Regarding Kotlin, again, what would you expect, a rewrite in Kotlin? the ability to run Kotlin code from jPOS? The ability to run jPOS code from Kotlin? (you can do that already for both situations in the same way you can run jruby code, groovy code, beanshell, either as QBeans, transaction participants or ISO filters).



--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DnDgC7z1AZFzDRdqt-FoXPD5mRbL2Wm_hDc9HOAx0RXaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] JSON / YAML and Kotlyn support?

EdPimentl
Hi Alejandro,

Thanks for the prompt response.
 
Was not aware one can use QBeans, Transactions Participants, since most of the code displayed in most of the submitted questions show XML and Verbose Java.

Very EXCITED, to know what is possible. Would Love to see a tutorial which does not use XML or Verbose JAVA and mostly uses JSON/YAML and Kotlyn.

Thank you VERY Much for your response,


On May 20, 2017 3:46 PM, "Alejandro Revilla" <[hidden email]> wrote:
Glad you liked the tutorial.

Just added a Tutorials page to the jPOS site (http://jpos.org/tutorials) and it's kind of short, so I guess we'll have to write more of those :)

Regarding your questions, I believe they are very abstract Ed, what do you mean by "JSON" support? Using JSON to configure stuff? using JSON as wire format? Same for YAML. Regarding Kotlin, again, what would you expect, a rewrite in Kotlin? the ability to run Kotlin code from jPOS? The ability to run jPOS code from Kotlin? (you can do that already for both situations in the same way you can run jruby code, groovy code, beanshell, either as QBeans, transaction participants or ISO filters).



--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DnDgC7z1AZFzDRdqt-FoXPD5mRbL2Wm_hDc9HOAx0RXaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CANMSB1ZRTFT5AqCWbvo7H%2BcG1Am%3DWXRqgVEyGBXHbyL7RW9Ndw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] JSON / YAML and Kotlyn support?

Barzilai Spinak
For historical reasons, most configuration files in jPOS (such as QBean deployment descriptors, GenericPackager configs, etc) are in XML and I don't
think that will change soon. It works and everybody can understand them, and they are well documented.

You could try to recreate a deployment file in JSON, but if you want to help, I think your efforts should be better spent in some other areas.

As for the verbosity of Java and its APIs, some of us may agree :-)
But it's an industry standard, and the jPOS family has like 20 years of accumulated code. Also you get much more compile-time static checks that you
don't get with more dynamic languages. And it works very efficiently (and I'm sure that at some companies you could have a hard time convincing the
PHB's that you want to use some esoteric language).

That said, Alejandro has been timidly introducing Javascript and Groovy for some quick scripting.
You also have the historical BeanShell-based classes, but they don't help much in terms of verbosity

I'm very partial towards Groovy, and there's already a GroovyParticipant; and I plan to extend some basic jPOS classes soon in order to allow much
less verbose Groovy code. Also, I want to add the possibility to write filters and request listeners in Groovy. As soon as I find the time :-)

Finally, I think you could write your classes in Kotlin, Scale, Groovy, and compile them externally (gradle helps a lot in that respect) and just
reference them as normal Java classes.  All those languages that integrate well with Java and the JVM could theoretically work

Barzilai

On 5/20/17 7:15 PM, EdPimentl wrote:

> Hi Alejandro,
>
> Thanks for the prompt response.
>  
> Was not aware one can use QBeans, Transactions Participants, since most of the code displayed in most of the submitted questions show XML and
> Verbose Java.
>
> Very EXCITED, to know what is possible. Would Love to see a tutorial which does not use XML or Verbose JAVA and mostly uses JSON/YAML and Kotlyn.
>
> Thank you VERY Much for your response,
>
>
> On May 20, 2017 3:46 PM, "Alejandro Revilla" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Glad you liked the tutorial.
>
>     Just added a Tutorials page to the jPOS site (http://jpos.org/tutorials) and it's kind of short, so I guess we'll have to write more of those :)
>
>     Regarding your questions, I believe they are very abstract Ed, what do you mean by "JSON" support? Using JSON to configure stuff? using JSON as
>     wire format? Same for YAML. Regarding Kotlin, again, what would you expect, a rewrite in Kotlin? the ability to run Kotlin code from jPOS? The
>     ability to run jPOS code from Kotlin? (you can do that already for both situations in the same way you can run jruby code, groovy code,
>     beanshell, either as QBeans, transaction participants or ISO filters).
>
>     --
>     @apr <http://twitter.com/apr>
>
>
>     --
>     --
>     jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please
>     support jPOS, contact: [hidden email] <mailto:[hidden email]>
>     ---
>     You received this message because you are subscribed to the Google Groups "jPOS Users" group.
>     To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]
>     <mailto:[hidden email]>.
>     To post to this group, send email to [hidden email] <mailto:[hidden email]>.
>     To view this discussion on the web visit
>     https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DnDgC7z1AZFzDRdqt-FoXPD5mRbL2Wm_hDc9HOAx0RXaw%40mail.gmail.com
>     <https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DnDgC7z1AZFzDRdqt-FoXPD5mRbL2Wm_hDc9HOAx0RXaw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>     For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
>
> --
> --
> jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please
> support jPOS, contact: [hidden email]
> ---
> You received this message because you are subscribed to the Google Groups "jPOS Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]
> <mailto:[hidden email]>.
> To post to this group, send email to [hidden email] <mailto:[hidden email]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jpos-users/CANMSB1ZRTFT5AqCWbvo7H%2BcG1Am%3DWXRqgVEyGBXHbyL7RW9Ndw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jpos-users/CANMSB1ZRTFT5AqCWbvo7H%2BcG1Am%3DWXRqgVEyGBXHbyL7RW9Ndw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
Barzilai Spinak
Transactility, Inc.
www.transactility.com
"Commercial licensing and support for the jPOS.org project"

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.  Please support jPOS, contact: [hidden email]
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/4bf955a1-563a-51a8-cce6-4f1470f6f443%40transactility.com.
For more options, visit https://groups.google.com/d/optout.