Re: How to change remote JNDI-name in Jonas

"Guillaume Sauthier (OW2)" <[email protected]> Tue, 9 Aug 2011 10:45:00 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <CAG1yf3PCZX447bBKbocWL-porRrFzKixTRdGrqFxNp4aEgqHrg@mail.gmail.com>
--000e0ce0f792425b2704aa0e94a1
Content-Type: text/plain; charset=ISO-8859-1

Can't you rely on container's injection (@EJB) ?
--G

2011/8/9 Stefaan Somers <[email protected]>

> Hi all,
>
> I need to change the remote jndi-name of a Stateless Session Bean .
> Default the naming for jonas is :
>
> SessionBean.class.getName()
> + "_" + SessionBeanInterface.class.getName() + "@Remote"
>
> How can I change this. If I add the attribute mappedName in the
> @Stateless-annotation, I cannot get to the Local Interface anymore.
> And I need to be able to get to both.
>
> Greetings,
>
> Stefaan Somers
>

--000e0ce0f792425b2704aa0e94a1
Content-Type: text/html; charset=ISO-8859-1

Can&#39;t you rely on container&#39;s injection (@EJB) ?<br>--G<br><br><div class="gmail_quote">2011/8/9 Stefaan Somers <span dir="ltr">&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br>
<br>
I need to change the remote jndi-name of a Stateless Session Bean .<br>
Default the naming for jonas is :<br>
<br>
SessionBean.class.getName()<br>
+ &quot;_&quot; + SessionBeanInterface.class.getName() + &quot;@Remote&quot;<br>
<br>
How can I change this. If I add the attribute mappedName in the<br>
@Stateless-annotation, I cannot get to the Local Interface anymore.<br>
And I need to be able to get to both.<br>
<br>
Greetings,<br>
<font color="#888888"><br>
Stefaan Somers<br>
</font></blockquote></div><br>

--000e0ce0f792425b2704aa0e94a1--