Avatar billede fredand Forsker
21. februar 2008 - 13:33 Der 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.

Best regards
Fredrik
Avatar billede arne_v Ekspert
24. februar 2008 - 01:24 #1
I doubt that it will work.

But you can try:

file:foobar.ear!/mydir
Avatar billede fredand Forsker
24. februar 2008 - 20:25 #2
Hello Arne!

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
Avatar billede arne_v Ekspert
24. februar 2008 - 20:57 #3
It is not a misspelling.

Try run this little program:

public class X {
    public static void main(String[] args) {
        System.out.println(X.class.getClassLoader().getResource("java/lang/String.class").getPath());
    }
}
Avatar billede fredand Forsker
25. februar 2008 - 08:49 #4
Thanks Arne!
I will try it out as soon as I can.
Best regards
Fredrik
Avatar billede fredand Forsker
03. april 2008 - 14:35 #5
Hello Arne!

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"

Btw really good example with the "!".

Please give a svar so I can reward you!

Best regards
Fredrik
Avatar billede arne_v Ekspert
14. april 2008 - 04:40 #6
I will pass on this one.
Avatar billede fredand Forsker
14. april 2008 - 08:41 #7
Ok, I take your word for that!

Thanks a lot any how!!
Best regards
Fredrik
Avatar billede Ny bruger Nybegynder

Din løsning...

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.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester