tag:blogger.com,1999:blog-18393164840510790472018-05-23T09:52:48.551+02:00Java / Oracle SOA blogAbout Java, JDeveloper, OEPE and Oracle OSB &amp; SOA suiteEdwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.comBlogger31412552.2591675.606944Java/OracleSoaBloghttps://feedburner.google.comtag:blogger.com,1999:blog-1839316484051079047.post-85970811206325917572014-08-10T19:42:00.001+02:002014-08-10T19:42:06.378+02:00Test your WebLogic 12.1.3 enviroment with Robot Robot Framework is a generic test automation framework which has an easy-to-use tabular test data syntax and it utilizes the keyword-driven testing approach. This means we can write our tests in readable and understandable text.
If we combine this with the REST Management interface of WebLogic 12.1.3 we are able to test every detail of a WebLogic domain configuration and when we combine this Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com3http://biemond.blogspot.com/2014/08/test-your-weblogic-1213-enviroment-with.htmltag:blogger.com,1999:blog-1839316484051079047.post-89626145853693327502014-08-07T00:59:00.003+02:002014-08-07T21:14:58.200+02:00Create with WLST a SOA Suite, Service Bus 12.1.3 DomainWhen you want to create a 12.1.3 SOA Suite, Service Bus Domain, you have to use the WebLogic config.sh utility. The 12.1.3 config utility is a big improvement when you compare this to WebLogic 11g. With this I can create some complex cluster configuration without any after configuration.
But if you want to automate the domain creation and use it in your own (provisioning) tool/script then you Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com26http://biemond.blogspot.com/2014/08/create-with-wlst-soa-suite-service-bus.htmltag:blogger.com,1999:blog-1839316484051079047.post-89415109253618925882014-07-31T13:47:00.003+02:002014-07-31T13:47:37.716+02:00Test your Application with the WebLogic Maven pluginIn this blogpost I will show you how easy it is to add some unit tests to your application when you use Maven together with the 12.1.3 Oracle software ( like WebLogic , JDeveloper or Eclipse OEPE).
To demonstrate this, I will create a RESTful Person Service in JDeveloper 12.1.3 which will use the Maven project layout.
We will do the following:
Create a Project and Application based on a Maven Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com2http://biemond.blogspot.com/2014/07/test-your-application-with-weblogic.htmltag:blogger.com,1999:blog-1839316484051079047.post-80880011178579194862014-06-27T22:56:00.002+02:002014-06-27T22:56:40.587+02:00Maven support for 12.1.3 Service Bus & SOA Suite artifactsWith the 12.1.3 release of Oracle Service Bus and Oracle SOA Suite we finally can build all our soa projects with Maven. And this time we can do it natively without calling a utility like configjar or ANT from Maven .
We start by setting all the required variables like JAVA_HOME,M2_HOME and PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
export M2_HOME=Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com20http://biemond.blogspot.com/2014/06/maven-support-for-1213-service-bus-soa.htmltag:blogger.com,1999:blog-1839316484051079047.post-51820910683232035302014-02-04T13:52:00.001+01:002014-02-05T05:29:02.575+01:00Configure Coherence HotCache
Coherence can really accelerate and improve your application because it's fast, high available, easy to setup and it's scalable. But when you even use it together with the JCache framework of Java 8 or the new Coherence Adapter in Oracle SOA Suite and OSB 12c it will even be more easier to use Coherence as your main HA Cache.
Before Coherence 12.1.2 when you want to use Coherence together withEdwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com10http://biemond.blogspot.com/2014/02/configure-coherence-hotcache.htmltag:blogger.com,1999:blog-1839316484051079047.post-48936541540894048302014-01-15T21:10:00.002+01:002014-01-15T21:10:39.238+01:00REST, SSE or WebSockets on WebLogic 10.3.6WebLogic 10.3.6 comes with Jersey1.9 and has no support for Server Side Events or WebSockets. But for one of our projects we are making a HTML5 / AngularJS application, which need to invoke some RESTful services and we also want to use of SSE or WebSockets.
Off course we can use WebLogic 12.1.2 but we already have an OSB / SOA Suite WebLogic 10.3.6 environment.
So when you want to pimp your Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com2http://biemond.blogspot.com/2014/01/rest-sse-or-websockets-on-weblogic-1036.htmltag:blogger.com,1999:blog-1839316484051079047.post-57305656437585211972013-11-24T21:22:00.002+01:002013-11-24T21:22:33.384+01:00new Puppet 3 Weblogic provisioning moduleThe last few weeks I was busy re-writing of my puppet WLS module so it fully supports the power of Puppet 3 (thanks for more than 4000 downloads on puppet forge and all the github downloads).
With Puppet 3 we now can use Hiera, Iterations and Lambdas expression. This does not sound like a big change but with Hiera and the new Puppet Language features, I can define big WebLogic Domains without Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com1http://biemond.blogspot.com/2013/11/new-puppet-3-weblogic-provisioning.htmltag:blogger.com,1999:blog-1839316484051079047.post-30781634955832237542013-11-16T22:11:00.002+01:002013-11-16T22:11:31.129+01:00Creating your own Virtualbox Development ImagesFor my Oracle Puppet provisioning development I can't do without these create image tools: Packer and Vagrant in combination with Oracle VirtualBox or VMware. In this blogpost I will explain what these tools can do for you and how you can make your own images and use puppet as provisioning tool.
With Vagrant you can create your own virtual images and it can start puppet or chef to do all the Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com7http://biemond.blogspot.com/2013/11/creating-your-own-virtualbox.htmltag:blogger.com,1999:blog-1839316484051079047.post-3435120550590333532013-10-19T20:07:00.003+02:002013-10-19T20:07:38.231+02:00The road ahead for WebLogic 12cBefore we can describe all the new features of WebLogic 12.1.3 & 12.1.4 and compare this to the 12.1.2 version we should first take a look at the 10.3.6 version. WebLogic 10.3.6 is still the latest 11g version but Oracle will support 10.3.6 till 2018 and extended support till 2021. So Oracle’s Fusion Apps and we have enough time to migrate to WebLogic 12.1.X. Oracle also promised that the upgradeEdwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com15http://biemond.blogspot.com/2013/10/the-road-ahead-for-weblogic-12c.htmltag:blogger.com,1999:blog-1839316484051079047.post-86334073519533992562013-08-22T21:46:00.001+02:002013-08-22T21:46:28.004+02:00Custom Jersey WADL generationI had a situation where the auto generated WADL did not match with my Rest services.
The first difference was that the response is presented as an object instead of a collection of objects and the second one is that it could not handle JSONWithPadding as response. Because I use this WADL in my Rest client generation, I need to fix these issues.
Lucky for me, Jersey JAX-RS allows us to provide Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com0http://biemond.blogspot.com/2013/08/custom-jersey-wadl-generation.htmltag:blogger.com,1999:blog-1839316484051079047.post-88014771099101052352013-08-11T23:20:00.000+02:002013-08-11T23:20:00.371+02:00Coherence 12.1.2 Rest application build with OEPE With WebLogic 12.1.2 Oracle also released a new version of Coherence and OEPE. The 12.1.2 release contains many new Coherence features like WebLogic Managed Coherence Servers and Coherence Grid Archive ( GAR ) which can be included in an normal EAR. Coherence also has some nice new REST features like direct & named queries, Custom Query engines and new Security options.
Plus with OEPE you can Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com1http://biemond.blogspot.com/2013/08/coherence-1212-rest-application-build.htmltag:blogger.com,1999:blog-1839316484051079047.post-85918924297406369692013-08-01T14:39:00.003+02:002013-08-01T14:39:42.945+02:00JAX-WS SOAP over JMS
With WebLogic 12.1.2 Oracle now also supports JAX-WS SOAP over JMS. Before 12.1.2 we had to use JAX-RPC and without any JDeveloper support. We need to use ANT to generate all the web service code. See this blogpost for all the details.
In this blogpost I will show you all the necessary JDeveloper steps to create a SOAP over JMS JAX-WS Web Service ( Bottom up approach) and generate a Web Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com4http://biemond.blogspot.com/2013/08/jax-ws-soap-over-jms.htmltag:blogger.com,1999:blog-1839316484051079047.post-32839313928519708602013-07-26T16:32:00.001+02:002013-07-26T16:32:16.445+02:00Maven support in WebLogic & JDeveloper 12.1.2 In the 12.1.2 release of JDeveloper and WebLogic, Oracle really improved the support for Maven as build and provisioning tool. Oracle did this on multiple levels:
an Utility to synchronize all the Oracle Middleware jars to a local ( .m2/repository) or a shared repository like nexus or artifactory
ojmake maven plugin for just building JDeveloper projects.
Updated its Weblogic plugin for Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com0http://biemond.blogspot.com/2013/07/maven-support-in-weblogic-jdeveloper.htmltag:blogger.com,1999:blog-1839316484051079047.post-28947407692492483662013-07-25T14:13:00.002+02:002013-07-25T14:13:45.678+02:00JDeveloper 12.1.2 EJB & Java Service Facade Datacontrol
With JDeveloper 12c (12.1.2) Oracle added some great updates to the ADF EJB / Java Facade Datacontrol. Oracle already added the Java Facade and Named Criteria support in its previous versions of JDeveloper but now also added the so wanted List of Values feature, just like we have in ADF BC.
In the the next part I will show you all the new features and some LOV bugs ( not everything is Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com2http://biemond.blogspot.com/2013/07/jdeveloper-1212-ejb-java-service-facade.htmltag:blogger.com,1999:blog-1839316484051079047.post-62698275317586890102013-06-11T22:51:00.002+02:002013-06-11T22:53:43.853+02:00Custom OSB Reporting ProviderWith the OSB Report Action we can add some tracing and logging to an OSB Proxy, this works OK especially when you add some Report keys for single Proxy projects but when you have projects with many Proxies who are invoking other JMS or Local Proxies than the default reporting tables (WLI_QS_REPORT_DATA, WLI_QS_REPORT_ATTRIBUTE ) in the SOA Suite soainfra schema is not so handy.
I want to Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com5http://biemond.blogspot.com/2013/06/custom-osb-reporting-provider.htmltag:blogger.com,1999:blog-1839316484051079047.post-10996757268562577702013-04-30T19:24:00.002+02:002013-04-30T19:24:33.648+02:00Offline Oracle Service Bus Configuration exportWith Oracle Service Bus PS6 or 11.1.1.7 we finally have an new offline build tool with does not require Eclipse (OEPE). With this OSB configjar tool ( located in the OSB home /tools/configjar/ folder ) you can make OSB export sbconfig jar based on 1 or more OSB projects or even with more then one OSB Configuration projects. Plus have total control what to include or exclude.
In this blogpost I Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com27http://biemond.blogspot.com/2013/04/offline-oracle-service-bus.htmltag:blogger.com,1999:blog-1839316484051079047.post-27110141165670712192013-04-02T22:49:00.000+02:002013-04-20T20:11:47.590+02:00Token Configurations in Oracle SOA Suite PS6 ( 11.1.1.7.0)Oracle Soa Suite PatchSet 6 or 11.1.1.7.0 now has support for Token configurations which really can help administrators in configuring or overriding external Web Service Reference parameters like the protocol ( http, oramds or https ), the remote host etc. And more important if you do it right you can kick out the all those Soa Suite deployment plans :-)
Important to know this only works on Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com6http://biemond.blogspot.com/2013/04/token-configurations-in-oracle-soa.htmltag:blogger.com,1999:blog-1839316484051079047.post-11610456227630547372013-03-24T21:28:00.002+01:002013-03-29T21:33:28.766+01:00Testing Activiti BPM on WebLogic 12cActiviti is a great open source workflow + BPM platform, which you can use in your own java application (embedded) or test it in the provided Rest or Web demo applications. Activiti also provides an Eclipse designer plugin which you can use to create your own BPMN 2.0 definitions and export this to the Activiti applications.
In blogpost I will show you the steps how to get this working on the Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com8http://biemond.blogspot.com/2013/03/testing-activiti-bpm-on-weblogic-12c.htmltag:blogger.com,1999:blog-1839316484051079047.post-45156680883851799692013-01-27T19:09:00.001+01:002013-01-27T19:09:32.931+01:00Active Directory user management with the IdentityStore framework of FMWWith the IdentityStore framework of Fusion Middleware you can change or create any user or role in almost every LDAP server. With this framework the authenticated user change their own password from ADF or in your own ADF Admin page you can create an user with its roles without knowing LDAP or know what LDAP server is used.
IdentityStore framework will automatically detect the configured Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com7http://biemond.blogspot.com/2013/01/active-directory-user-management-with.htmltag:blogger.com,1999:blog-1839316484051079047.post-32016308695224160492012-11-19T22:50:00.003+01:002012-11-19T22:50:59.932+01:00JPA SQL and Fetching tuning ( EclipseLink )When you use JPA in your project and your model project contains many entities with some Eager fetching relation attributes then you probably notice that EclipseLink can fire a lot of SQL queries on the database. This works ok & fast on Dev or Test but in production these queries can lead to big problems ( higher load and more data).
In our project we also use ADF DataControls, Web Services or Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com1http://biemond.blogspot.com/2012/11/jpa-sql-and-fetching-tuning-eclipselink.htmltag:blogger.com,1999:blog-1839316484051079047.post-9083865157060835142012-10-30T21:55:00.000+01:002012-10-30T21:55:27.654+01:00Easy way to access JPA with REST (JSON / XML)With the release of EclipseLink 2.4, JPA persistence units can be accessed using REST with JSON or XML formatted messages. The 2.4 version supports JPA-RS which is a RESTful API for dealing with JPA. In this blogpost I will show you what is possible with JPA-RS, how easy it is and howto setup your own EclipseLink REST service. This is also possible when you want to expose database tables as SOAP Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com5http://biemond.blogspot.com/2012/10/easy-way-to-access-jpa-with-rest-json.htmltag:blogger.com,1999:blog-1839316484051079047.post-72797360976183343092012-10-28T12:39:00.000+01:002012-10-28T12:39:03.821+01:00Using JSON-REST in ADF MobileIn the current version of ADF Mobile the ADF DataControls ( URL and WS ) only supports SOAP and JSON-XML. But this does not mean we cannot use JSON. To handle JSON we can use the RestServiceAdapter and JSONBeanSerializationHelper classes. The RestServiceAdapter will handle the Rest Service and JSONBeanSerializationHelper helps us converting JSON to Java.
I made a little ADF Mobile demo based onEdwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com3http://biemond.blogspot.com/2012/10/using-json-rest-in-adf-mobile.htmltag:blogger.com,1999:blog-1839316484051079047.post-17684351899373822082012-10-07T16:45:00.002+02:002013-04-30T19:31:47.952+02:00Build and Deploy OSB projects with Maven2 years ago I already did the same with ANT and now I migrated these scripts to Maven. These Maven poms can still do the same like my ANT scripts.
Build and deploy an OSB OEPE workplace
Build one OSB project.
Export OSB projects from an OSB server and generate a customization plan.
Here you can find my code https://github.com/biemond/soa_tools/tree/master/maven_osb_ps5 or the PS6 version https:Edwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com15http://biemond.blogspot.com/2012/10/build-and-deploy-osb-projects-with-maven.htmltag:blogger.com,1999:blog-1839316484051079047.post-58246778346444569682012-08-09T20:51:00.000+02:002012-08-09T20:51:25.068+02:00Generating an EJB SDO Service Interface for Oracle SOA SuiteIn Oracle SOA Suite you can use the EJB adapter as a reference or service in your composite applications. The EJB adapter has a flexible binding integration, there are 3 ways for integrating the remote interface with your composite.
First you have the java interface way which I described here this follows the JAX-WS way. It means you need to use Calendar for your Java date types and leads to oneEdwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com14http://biemond.blogspot.com/2012/08/generating-ejb-sdo-service-interface.htmltag:blogger.com,1999:blog-1839316484051079047.post-40442436668466342442012-08-02T22:14:00.003+02:002012-08-02T22:14:54.056+02:00Return a fault from an Asynchronous Web ServiceIn an asynchronous web service we can't return a soap fault like a synchronous service but that does not mean you can't report back the fault to the calling asynchronous process.
basically you got three options.
Off course handle the fault in the error hospital and give back the response.
In the response message you can add a section ( a XSD choice with success and fault section) which can beEdwin Biemondhttps://plus.google.com/113701679510703185415noreply@blogger.com4http://biemond.blogspot.com/2012/08/return-fault-from-asynchronous-web.html