Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Comunication between a jar and a war on an ear project.

 
Esteban Lopez
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm doing and ear project. In the ejb I read an mdb from a JMS queue and in my war I have the dao with hibernate.

I want to save my message in the database but I can't use the war classes from the jar, and I don't know why can I share the message.

Can anybody help me, please?

Sorry for my english and thank you.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

A war can access a jar, but not vice versa. Consider moving your dao to a separate project so it can be jar'ed up and placed in the ear. That way both your web project and ejb project can refer to it.
 
Esteban Lopez
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, i'll try it
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic