21. februar 2008 - 13:33Der er
6 kommentarer og 1 løsning
How to include a .bindings inside a ear?
Hello!
I use Weblogic 8.16. In this appserver I deploy a ear that needs JNDI-bindings to a remote JMS-provider for my MDB:s.
In the weblogic-ejb-jar.xml I specify a tag like: <provider-url>file:/C:/mydir<provider-url> ...this path is the path to the dir where my .bindings resides, that specifyies the JNDI.
This works fine.
But I would like to include the .bindings into the ear itself. The reason is to limit the dependencies outside the ear. But I can not figure out how to make this possible.
So if any one have any idea how to solve this it would be great.
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
Thanks for your reply! I will try this at once on wednesday when I'm back in that project. But could I ask you if the "!" is doing any special or if it is a misspelling? I have never seen taht before. Best regards Fredrik
public class X { public static void main(String[] args) { System.out.println(X.class.getClassLoader().getResource("java/lang/String.class").getPath()); } }
I tried what you suggested, but you was right it did not work.
I tried: provider-url="file:/C:/mypath/myear.ear!/resources" provider-url="file:/C:/mypath/myear.ear!/resources/" provider-url="file:/C:/mypath/myear.ear!/resources/.bindings"
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.