VOOZH about

URL: https://www.javacodegeeks.com/2011/12/scaling-up-to-weblogic-12c-server-from.html

⇱ Scaling up to WebLogic 12c Server from GlassFish 3.x - Java Code Geeks


One of the main goals of Oracle’s strategy for GlassFish server was to “integrate with Fusion Middleware and Products” (source: Community Roadmap May, 2010). Back in this year you heard a lot of fears and rumors about the two servers becoming one. Seeing both products moving forward in terms of features and releases it gets clearer what that strategy could be.

Beginning with GlassFish’s support for a limited set of weblogic specific deployment descriptors, Oracle also moved on with WebLogic to do the same. Beginning with 10.3.6 WebLogic Server adds support for reading and using GlassFish’s web deployment descriptors. These are glass?sh-web.xml and sun-web.xml. This is useful for providing speci?c GlassFish behavioral settings and mappings for resources and security to WebLogic Server. The goal behind that obviously is to allow a GlassFish application to be deployed more easily to WebLogic Server and vice verse.

What WebLogic knows about GlassFish

WebLogic Server detects the presence of GlassFish web deployment descriptors in WAR files and parses them. Known entries are parsed into WebLogic server settings and applied at runtime via WebLogic MBeans (weblogic.j2ee.descriptor.wl.WeblogicWebAppBean).
WebLogic always will use an existing weblogic.xml instead of the GlassFish deployment descriptors if it is present and WebLogic applies the settings at runtime which means, that no weblogic.xml is actually generated.

Element NameWeblogic Support ()

session-manager:manager-properties:

session-manager:manager-properties:

session-manager:manager-properties:

session-manager:manager-properties:

If you deploy a GlassFish web-application to WebLogic you get some log messages with INFO level and you can follow what is happening:

<Info> <HTTP> <BEA-101392>…
<Glassfish Descriptor element <glassfish-web-app> is not supported>
<Glassfish Descriptor element <context-root> was successfully parsed and applied>
<Glassfish Descriptor element <idempotent-url-pattern> is not supported>
<Glassfish Descriptor element <property> is not supported>
<Glassfish Descriptor element <reapIntervalSeconds> was successfully parsed and applied>
<Glassfish Descriptor element <res-ref-name> was successfully parsed and applied>
<Glassfish Descriptor element <jndi-name> was successfully parsed and applied>
<Glassfish Descriptor element <delegate> was successfully parsed and applied>
<Glassfish Descriptor element <keepgenerated> was successfully parsed and applied>

Compared to what GlassFish knows about WebLogic, this is still a very limited set of parameters. But it covers the most needed ones. And we are still looking forward to even less xml configuration with further Java EE versions. But let’s look at the other side.

What GlassFish knows about WebLogic

GlassFish Server offers limited support for the weblogic-application.xml, weblogic.xml, and weblogic-webservices.xml deployment descriptor files. The only element in weblogic-application.xml that GlassFish Server supports is security. The equivalent element in the glassfish-application.xml file is security-role-mapping.

Element NameGlassFish Server Support
under under equivalent
under
under equivalent
equivalent, but not supported
equivalent, but
not supported
equivalent
equivalent
under property of
equivalent
under property of equivalent
under property
of equivalent
under property of equivalent
under
attribute of equivalent
equivalent
under Servlet 3.0
under
Servlet 3.0
under Servlet 3.0
under Servlet 3.0
under Servlet 3.0
under
Servlet 3.0
under Servlet 3.0
under Servlet 3.0
under Servlet 3.0
under
Cookie-based persistence is supported
under keepgenerated init parameter of
under scratchdir
init parameter of
under trimSpaces init parameter of
under listings
init parameter of
under sortedBy init parameter of
under Same
as or in
under under
Element NameGlassFish Server Support
Possible values are or . GlassFish Server
does not support JAX-RPC web services with JSR 181 annotations. The use of this
element is limited, because the container can find out if the type is
JAX-WS or JAX-RPC based on presence of JSR 181 annotations.
Same as
in
Similar to in , except that and are
specified separately
Same as in
Same as in
under Accepts
or , defaults to . Controls the publishing of WSDL to clients.
Accepts
or , defaults to . Only for JAX-WS web services. Configures the JAX-WS runtime
to send attachments in streaming fashion.
Accepts or , defaults to . Only
for JAX-WS web services. Configures the JAX-WS runtime to validate that request messages
are as the WSDL definitions specify.
Property of configuration, similar to
Partially supported. Subelements
map to Metro’s .
under Maps to
under Maps to

under
Maps to . Returns values, one of them is .

under
Maps to
under Maps to . In WebLogic Server this
value applies regardless of activity. In Metro it applies only to inactive sequences.

under
Maps to
under Maps to



But for what is all that good for?

Good question. There are some possible interpretations for what is happening.

  1. GlassFish could be positioned as a certified, lightweight development platform for Oracle’s FMW stack based on WebLogic server. If this would be the main goal, I wouldn’t expect WebLogic to understand any of the GF DDs but GF knowing about all tweaks and settings of WLS.
  2. Easy re-deployment of GF apps on WLS. This is what you find on the official launch slides. If you are running GF and you need to scale up to WLS you have a more easier migration path.
  3. Both teams are trying to get hands on the concepts and switches of the other side. The GF roadmaps from the past highlight a “Common Server Platform” for WLS and GF. So knowing each other could be an easy and obvious first step for the teams.

As always, a bit of everything might be true. So there is nothing else left for now than simply to be happy about and watch how both excellent servers come closer together and to be open for future possibilities.

Reference: Scaling up to WebLogic 12c Server from GlassFish 3.x from our JCG partner Markus Eisele at the Enterprise Software Development with Java blog.

Related Articles :

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

👁 Photo of Markus Eisele
Markus Eisele
December 14th, 2011Last Updated: November 1st, 2012
0 105 5 minutes read

Markus Eisele

Markus is a Developer Advocate at Red Hat and focuses on JBoss Middleware. He is working with Java EE servers from different vendors since more than 14 years and talks about his favorite topics around Java EE on conferences all over the world. He has been a principle consultant and worked with different customers on all kinds of Java EE related applications and solutions. Beside that he has always been a prolific blogger, writer and tech editor for different Java EE related books. He is an active member of the German DOAG e.V. and it's representative on the iJUG e.V. As a Java Champion and former ACE Director he is well known in the community. Follow him on Twitter @myfear.
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz