Rajan
Rajan

Reputation: 626

persistence.xml for ejb deployed in glassfish

folks,

i am trying to deploy a ear with a ejb in the ear root. the ejb has a persistence.xml file where the tag has to be a jar file in the Glassfish's domain lib. (this i have put it there because the jar is used across ears)

so what exactly should be the content of the <jar-file>*****/myjar.jar</jar-file> tag, for the jar in the glassfish's domain lib directory.

thanks fr yure time,

rajan.

Upvotes: 2

Views: 818

Answers (1)

jpkroehling
jpkroehling

Reputation: 14061

The path should be either an absolute path to a JAR (not recommended) or the simple file name for a JAR inside the EAR deployment file. So, assuming you have an EAR with the jars "ejbs.jar", "jpa.jar" and "myjar.jar", the <jar-file> tag in jpa.jar for myjar.jar should be:

<jar-file>myjar.jar</jar-file> 

Upvotes: 2

Related Questions