Goodnight Stackoverflow.
I've been using the JCo recently with Java, and I think it's great, but I have been using SCALA more and more recently as more of a hobby and something I find makes programming more pleasing.
For those that don't know what the SAP JCo is and want to save yourselves a search:
SAP Java Connector (SAP JCo) is a middleware component that enables the development of SAP-compatible components and applications in Java. SAP JCo supports communication with the SAP Server in both directions: inbound calls (Java calls ABAP) and outbound calls (ABAP calls Java). SAP JCo can be implemented with Desktop applications and with Web server applications. Source
And I got curious, is it possible to use the SAP JCo connector together with SCALA? I know there isn't a direct way to do so, but does anyone have experience doing so? It'd be a highly attractive solution to me. I prefer programming in SCALA over Java when possible, and my company is not that big so I often undertake entire programs by myself, which means I wouldn't be affecting anyone by using SCALA instead of Java.
Does anyone have any experience with this? Cheers!
I recently wrote a small library in Scala on top of SAP JCo (closed source, sorry). Not sure what you mean by "I know there isn't a direct way to do so": as already said in other answers, JCo is a Java library and as such it can be used seamlessly from Scala. The fact that JCo wraps SAP native libs (.so, .ddl) doesn't matter from the point of view of Scala.