aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Comunication between a jar and a war on an ear project. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Comunication between a jar and a war on an ear project." Watch "Comunication between a jar and a war on an ear project." New topic
Author

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

Esteban Lopez
Greenhorn

Joined: Oct 01, 2012
Posts: 2
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Esteban Lopez
Greenhorn

Joined: Oct 01, 2012
Posts: 2
Thank you, i'll try it
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Comunication between a jar and a war on an ear project.
 
Similar Threads
Deploying My project in Jboss server
login-config for two war's
common tasks in multiple build files
WSAD overwriting MANIFEST.MF
How to make a WAR file for EJB project in WSAD