The Artima Developer Community
Sponsored Link

Java Community News
Scala Development with Eclipse and Weblogic

2 replies on 1 page. Most recent reply: Feb 11, 2008 12:14 PM by Leo Lipelis

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Scala Development with Eclipse and Weblogic Posted: Feb 8, 2008 1:36 PM
Reply to this message Reply
Summary
BEA's James Bayer recounts his experience using Scala with Eclipse and the BEA WebLogic server.
Advertisement

While Scala development tools tools are still lacking compared with their Java-focused cousins, such tools are gradually gaining both features and users. In a recent BEA dev2dev article, James Bayer presents a tutorial on the Eclipse Scala plug-in, and how to use Scala code in an enterprise Java application in conjunction with JSPs in Scala Development with Eclipse and Weblogic:

Bayer sums up his experience thus:

Scala actually is fairly easy to integrate into both tools and runtimes that most java developers will already be familiar with... I could have just as easily deployed this to Tomcat., or WebLogic Event Server...

The scalac compiler takes .scala files and builds .class files that have a dependency on the scala-library.jar... Therefore, the only thing you need to invoke and run them from java is to have the .class files and the scala-library.jar on your classpath... The converse is also true; Scala objects can just as easily invoke java objects by including them on the scala classpath...

Using Scala code within Eclipse is supported by the Eclipse Scala plugin, providing, for example, Scala syntax highlight:

In spite of such basic editing support, Bayer also notes some notable lacks in the current Eclipse Scala plug-in:

The developer experience is not quite ideal with respect to the packaging Scala artifacts to be used easily in Dynamic Web Projects for iterative development with WebLogic Server. First of all, I could not find a non-custom way of exporting the Scala .class files into a jar file...

After deciding not to spend more time on the packaging issues I moved on to another basic concept, simply calling a Scala object from a JSP. In this case there is a suitable example addressbook.scala on the Scala site that spits out an addressbook in Xhtml. This example also showcases one of the Scala languages handy features of native XML support...

What do you think of the current state and direction of Scala development tools?


alpha alpha

Posts: 8
Nickname: alpha512
Registered: Mar, 2007

Re: Scala Development with Eclipse and Weblogic Posted: Feb 10, 2008 11:48 PM
Reply to this message Reply
Check out Groovy and Grails with Intellij IDEA simply rocks!.

I think the future is the dynamic languages, static typed languages yuk! Java will be my last one after Java I will go with dynamic ones Python, Groovy, Ruby so on. Of course on top of the JVM, the JVM it is a great piece of software. Anyway Java will be with us for a long time so I don't hurry to switch, Java still young and Groovy is looking sexy more. Scala could be great before in the 90's now is Dynamic languages times!.

Leo Lipelis

Posts: 111
Nickname: aeoo
Registered: Apr, 2006

Re: Scala Development with Eclipse and Weblogic Posted: Feb 11, 2008 12:14 PM
Reply to this message Reply
I think Scala is a great language and there is a place for it -- statically typed, low noise, expressive language.

It's true that for Java people to start using Scala, Scala needs to have first class IDE support. I don't think anyone wants to code without code completion these days. I know I am wrong because obviously some people use Scala even today, but I think it's not a bad generalization.

Flat View: This topic has 2 replies on 1 page
Topic: SCA or JBI for Enterprise Integration? Previous Topic   Next Topic Topic: Grails 1.0 Released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use