Beside the fact, that the release notes are missing and the documentation is not updated to the latest version, everything looks quite the same.
There was time for me to look at the Technical Preview Parts of the Oracle Weblogic SCA implementation called JScaLite.
As a more or less frequent reader of my blog, you know, that I like to work with the provided samples. They are basically a good start for understanding new features and provide a basic skeletton for your own trials.
Shipped with the WLS 10.3.2.0 you can find a sca example. It is based on a shopping cart application. The following figure (taken from the examples documentation) explains the high level architecture:
This example demos the most important features of JscaLite container. The demoed features include:
•EJB 3.0 Service Bindings
•Web Service Bindings
•EJB 2.0 Reference Bindings
•EJB 3.0 Reference Bindings
•Web Service Reference Bindings
•Default Binding
•JSCA Binding
•Local Reference Resolution (References to services that are part of the same JSca application)
•JSCA application deployment / undeployment
Ok. Let's start over again. First step is to install the package. After you downloaded the 815 MB installer (windows) you are guided through the installation process, as usual. After that, you create your domain and start adjusting the example.properties (%SERVER_HOME%\wlserver_10.3\samples\server\examples\src).
Now you should setup your environment variables (setDomainEnv.cmd is a good start) and start building the examples (ant build).
Up to this, everything works fine. If you try to deploy (ant deploy) you come across some problems:
- the build.xml does not make use of the example.properties => change it
- the deployable library for sca (weblogic-sca-1.0.war) is not deployed => deploy it
- the weblogic.xml dd does not point to the correct library => change it
So far, so good :) Anyhow .. this is where the little journey ends. From now on, I did not manage to fix the remaining issues.
you get a
java.io.FileNotFoundException: class path resource [META-INF/spring-sca.xsd] cannot be opened because it does not exist
if you try to deploy it. Even providing the file within the WEB-INF/classes/META-INF/ this does not solve the problems. A redeployment, ended up with a
org.xml.sax.SAXParseException: cvc-complex-type.2.1: Element 'sca:service' must have no character or element information item [children], because the type's content type is empty.
Played around a bit with different approaches and finally gave up on this. If anybody got this working ... let me know.
Hi,
ReplyDeleteYou may want to check out Fabric3 as an SCA implementation (www.fabric3.org). F3 supports a number of deployment platforms including a lightweight server (~10MB), Tomcat, and Java EE application servers. It also supports dynamic clustering where runtime nodes can be added transparently and wiring performed accross SCA applications.
We are also planning on having a WebLogic-specific release which will take advantage of WLS clustering and management features.
Jim Marino
Fabric3
Markus, the reason this SCA sample was not documented is because it is not certified for production usage yet. The sample code was not meant to include the doc as we know there are issues with the sample.
ReplyDeleteAs these sample application issues are relatively easy to work around, we are planning on providing independent of the release a writeup explaining how to make the current implementation work even though it is really a tech preview of the capabilities.
In a subsequent release, we will publish the full documentation set and formal support for it in production environment. We hope to have that sample in the next week or so available so you can see this bit of new work in action.
Mike Lehmann
Director of Product Management
WebLogic Server and Java Infrastructure