// home

Latest Post

Java EE 7 / JAX-RS 2.0 – CORS on REST (How to make REST APIs accessible from a different domain)

Java EE REST application usually works well out of the box on a development machine where all server side resources and client side UIs point to “localhost” or 127.0.0.1. But when it comes to cross domain deployment (when the REST client is no longer on the same domain as the server that host the REST APIs), some work-around is required. This article is about how to make Cross Domain or better known as Cross-origin Resource Sharing a.k.a CORS work when it comes to Java EE 7 / JAX-RS 2.0 REST APIs. It is not the intention of this article to discuss about browser and other security related mechanisms, you may find this on other websites; but what we truly want to achieve here is again, to get things working as soon as possible. (more…)

Updates

  • Started a new series of "Building and Deploying Java EE EAR with Maven to Java EE Application Server" series. Part 3 is about Deployment to Glassfish Ver 3.x. More App Servers to come... #
  • Season’s Greetings: We wish all of our readers a very Merry Christmas and an absolutely productive and prosperous New Year ahead. At A Developer’s ScrapPad, Christmas day is the day we remember the birth of our Lord Jesus Christ. Reminding ourselves that men are totally limited and that is why, we need the salvation of God in all things and all circumstances, including our eternal lives. Without the love of God, men have no hope. God bless to all. #
  • Just posted a few articles on Java JNDI/LDAP access to Windows Active Directory within the last two weeks. Hope to give some support for Java developers who are stretching their heads with Windows Active Directory. #
  • Our website (more specifically our server host) had a couple of glitches today and was down for a couple of hours. We have tentatively fix it for the moment. Thank you for being patient with us and we do apologize for any inconveniences caused. #
  • We've just posted the complete series on MySQL Cluster NDB 7.2 on Solaris 10 for the folks that are looking for quick snappy guide to successful installation and implementation. Check out the first part of the article here. #
  • Had completed the series on Making Sense of EJB3.x Transaction Attributes, you may always start the first part here #
  • We are currently adjusting some of the layouts of the pages. At such, we do apologize if we have caused any inconveniences while you are reading. Thank you for your support. #
  • Even after JTA was introduced for more than 10 years, I've discovered that there are still many developers who are pretty confused with transaction in EJB. I'll start of with some posts relating to transaction before the 1Q of the year ends. #

Welcome to A Developer's Scrappad

This site consists mainly of articles and tutorials on some specific areas of Java EE, Unix-es, DBs (Oracle, MySQL, DB2, etc.) and Java EE App Servers.

Previous Posts

Java LDAP/JNDI: 2 Ways Of Decoding And Using The objectGUID From Windows Active Directory

Java LDAP/JNDI: 2 Ways Of Decoding And Using The objectGUID From Windows Active Directory

October 13th, 2012

Windows Active Directory is a good way for many corporations to be used as a means of user managemen[...]

Quick Note: Unable To Perform LDAP Wildcard “*” Search On Windows Active Directory

Quick Note: Unable To Perform LDAP Wildcard "*" Search On Windows Active Directory

October 9th, 2012

In case you are searching high and low for a solution or an answer to why Windows Active Directory d[...]

Java JNDI/LDAP: Windows Active Directory Authentication, Organizational Unit, Group & Other Information Access

Java JNDI/LDAP: Windows Active Directory Authentication, Organizational Unit, Group & Other Information Access

October 4th, 2012

In today's IT environment, most mid-size corporation and above will have some form of centralized em[...]

MySQL Cluster NDB 7.2 on Solaris 10 Part 3 – Testing The Cluster

MySQL Cluster NDB 7.2 on Solaris 10 Part 3 - Testing The Cluster

September 22nd, 2012

We are back again to have fun with our cluster that we've setup written in our previous articles on [...]

MySQL Cluster NDB 7.2 on Solaris 10 Part 2 – Starting, Distributed Synchronized Users Management And Stopping The Cluster

MySQL Cluster NDB 7.2 on Solaris 10 Part 2 - Starting, Distributed Synchronized Users Management And Stopping The Cluster

September 18th, 2012

This is the continuation from the previous part of the tutorial MySQL Cluster NDB 7.2 on Solaris 10 [...]

MySQL Cluster NDB 7.2 on Solaris 10 Part 1 – How To Install, Setup and Configure

MySQL Cluster NDB 7.2 on Solaris 10 Part 1 - How To Install, Setup and Configure

September 18th, 2012

If you have landed on this page, we believe you might either had a bumpy ride in getting the MySQL c[...]

Quick Fix: How to Solve “Unable to read the logging configuration” on Netbeans7 with JBoss6

Quick Fix: How to Solve "Unable to read the logging configuration" on Netbeans7 with JBoss6

September 8th, 2012

This is just a quick fix post for those whom are having this problem when running JBoss 6.x with Net[...]

Making sense of EJB3.x Transaction Attributes – Part 4 (NEVER)

Making sense of EJB3.x Transaction Attributes – Part 4 (NEVER)

September 5th, 2012

This is the last part in the series of "Making sense of EJB3.x Transaction Attributes". So far, we'v[...]

Making sense of EJB3.x Transaction Attributes – Part 3 (Difference Between SUPPORTS and NOT_SUPPORTED)

Making sense of EJB3.x Transaction Attributes – Part 3 (Difference Between SUPPORTS and NOT_SUPPORTED)

September 5th, 2012

Oracle had extensively documented the behavior of each transaction attributes in the Java EE documen[...]