0

I'm trying to connect the JPA (EclipsLink implementation) used on my application to JBoss DS, but don't know how to do it.

The application that I'm working is a OSGi Based application runing on a Equinox container that runs as a servlet on a JBoss WAR file.

How can I configure my application so that it connects the JBoss DS?

Mikulas Dite
  • 7,790
  • 9
  • 59
  • 99

1 Answers1

0

Sounds pretty complicated. What have you tried, and what error are you getting?

Normally you just set the datasource in the JPA persistence.xml, does that work?

James
  • 17,965
  • 11
  • 91
  • 146
  • Currently I'm getting 11:41:20,858 INFO [STDOUT] [EL Warning]: 2012-09-24 11:41:20.858--The temporary classLoader for PersistenceLoadProcessor [tn] is not available. Switching classLoader to [org.ecli pse.persistence.internal.jpa.deployment.osgi.CompositeClassLoader@54174e5]. Weaving has been disabled for this session. EclipseLink may be unable to get a spec mandated temporary class loader from the server, you may be able to use static weaving as an optional workaround. – user1694056 Sep 24 '12 at 13:59
  • Seems like a warning, not an error? Does your app still work? If you want weaving in JBoss you must use static weaving. – James Sep 25 '12 at 14:03