DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Further Configuration on JBoss AS7

Further Configuration on JBoss AS7

Rob Williams user avatar by
Rob Williams
·
Jul. 19, 11 · Java Zone · Interview
Like (0)
Save
Tweet
7.51K Views

Join the DZone community and get the full member experience.

Join For Free

Ok, so getting the datasources straightened out was not like differentiating a quadratic equation, but it was just a bunch of painful drudgery. A lot of it was slop lying around that Tomcat was not concerning itself with, but JB7 was finding, and some of it was the crackpot eclipse cycle of having to clean and refresh, etc. every time you do a config change.

But that wasn‘t the end either. Our project uses eh-cache and we wasted almost another hour trying to make that work.

I'm actually really interested in using Infinispan for the cache..

But in the meantime, literally hours went in a hole fiddling around with the caching configuration. First, trying to set it to ehcache produced a slew of errors (mostly class crap). So we decided to try and go in the Infinispan direction. It didn‘t like the READ_WRITE annotation on entities. Started replacing those with TRANSACTIONAL. Boy, that was such fun. Finding every annotation in every project. Annotations can be kind of stupid, for things like this for instance. How is separation of concerns being honored here? What on earth does a cache policy have to do with the entity itself? But, finally, that all was working and hibernate was sufficiently satisfied that it rolled through all its crap. So we started making arrangements to pull in the fatted calf again. But it was not to be. We struggled for a while longer with a crazy casting error (of the Hibernate Session) that is done inside Lucene, it turns out. Then, alack, Pugachev‘s little ox cart ran aground after wandering the countryside with a simple proclamation: JB7 does not support Hibernate Search 3.

So the total amount of time now has officially reached kookie. Like, I could have probably ported a large amount of the code to 6 in this amount of time.

That said, I am far from soured on JB7. I am still really looking forward to it. I would warn any who are thinking of wandering into the woods with a 5-era project that has a significant number of dependencies, you may be down in the sewer a long time.

 

From http://www.jroller.com/robwilliams/entry/further_configuration_on_jboss_as7

JBoss Hibernate Annotation Cache (computing) Infinispan entity Datasource Dependency Eclipse

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is SSO and Why Do You Need It?
  • How to Utilize Python Machine Learning Models
  • Data Pipelines for Engineered Decision Intelligence
  • Augmented Analytics: The Future of Business Intelligence

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo