tag:blogger.com,1999:blog-30587633.post115200247714809892..comments2022-04-26T03:37:19.740+05:30Comments on My Wiki: Accessing a secure EJB through a standalone java clientJaikiranhttp://www.blogger.com/profile/08503182723143814781noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-30587633.post-6344148588445689472015-08-31T13:34:50.424+05:302015-08-31T13:34:50.424+05:30As the client side login module not authenticating...As the client side login module not authenticating the user actually.It simply sending the credential to the jboss (as much as I have understood). Actual authentication is being made when ejb call is made. My question is - how does the jboss come to know about the credential when actual athentication is being made?<br /><br />Thanks in advance.Anonymoushttps://www.blogger.com/profile/17538780708548173377noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-59244791058550881522011-08-23T18:48:02.485+05:302011-08-23T18:48:02.485+05:30thx men, you made my day.thx men, you made my day.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-71816997711975510512007-04-25T18:59:00.000+05:302007-04-25T18:59:00.000+05:30You need not put the authentication on the client ...You need not put the authentication on the client side. You can just pass on the credentials to the server and the server will do a JAAS authentication on server side.<BR/><BR/>Section <B>8.4.1. How the JaasSecurityManager Uses JAAS</B> at <A HREF="http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch8.chapter.html" REL="nofollow"> Security in JBoss</A> has explained this specific scenario.Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-64650006899100042072007-04-23T21:08:00.000+05:302007-04-23T21:08:00.000+05:30I have an standalone application that connect to a...I have an standalone application that connect to a Jboss server to request EJB methods.<BR/>I want to secure the request to the EJB methods and provide an swing form that ask an username and password to the user.<BR/>Where i put the authentication aspect, in the client or the server or both?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-5773815524760203682007-04-23T11:01:00.000+05:302007-04-23T11:01:00.000+05:30Jagadeesh,If the client wants to lookup a bean dep...Jagadeesh,<BR/><BR/>If the client wants to lookup a bean deployed on the remote server then you can pass the remote server details in the InitialContext as follows:<BR/><BR/><BR/>//JBoss specific parameters passed through Properties<BR/>Properties p = new Properties();<BR/>p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");<BR/>p.put(Context.PROVIDER_URL, "jnp://remoteMachineIPAddress:1099");<BR/>p.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");<BR/>Context context=new InitialContext(p);<BR/><BR/>context.lookup(".....");Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-63432740964617521002007-04-20T12:10:00.000+05:302007-04-20T12:10:00.000+05:30This works when i write this EJB Client on same ma...This works when i write this EJB Client on same machine where my EJB Deployed Jboss is running.<BR/><BR/><BR/>But how will this CLient know where is my EJB Deployed when i am running on some other server.Jagadeesh HShttps://www.blogger.com/profile/08660848597788923174noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-42907283327389257122007-04-06T19:58:00.000+05:302007-04-06T19:58:00.000+05:30Nice Informative posts Jai.Please see my post on j...Nice Informative posts Jai.<BR/><BR/>Please see my post on javaranch <A HREF="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=63&t=002494" REL="nofollow">here.</A> I will be happy if you can suggest something. I have been stuck with this problem for a while now.Abhinav Nigamhttps://www.blogger.com/profile/05898253906339975142noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-17155215401523052932007-02-01T09:57:00.000+05:302007-02-01T09:57:00.000+05:30JBoss already comes with a login-config.xml. You w...JBoss already comes with a login-config.xml. You will find it in %JBOSS_HOME%/server/default/conf folder. Just add/edit contents in that file for the loginmodules. As far as the ejb jar file is concerned, you can package the ejb-jar.xml and jboss.xml in the jar file.Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-17303133457401297542007-02-01T07:59:00.000+05:302007-02-01T07:59:00.000+05:30When I package my bean, i enclose file "ejb-jar.xm...When I package my bean, i enclose file "ejb-jar.xml" inside META-INF. So, I must place two file "jboss.xml" and "login-config.xml" ?(where ?). <br /> Help me ! (Sorry, my E is not good.)ChangeMyLifehttps://www.blogger.com/profile/03865179529749933442noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-6900272461067713322006-11-06T13:30:00.000+05:302006-11-06T13:30:00.000+05:30Glad again :)Glad again :)Jaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-45840711786942554132006-11-06T03:47:00.000+05:302006-11-06T03:47:00.000+05:30Thank U very mcuh.. I've been looking so much how ...Thank U very mcuh.. I've been looking so much how to work with JMS, and casually I found also the standalone and jboss comunication, stuff that also needed. Thx :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-30587633.post-1162017584974497792006-10-28T12:09:00.000+05:302006-10-28T12:09:00.000+05:30Glad to know it helped you.-JaikiranGlad to know it helped you.<BR/><BR/>-JaikiranJaikiranhttps://www.blogger.com/profile/08503182723143814781noreply@blogger.comtag:blogger.com,1999:blog-30587633.post-1160584101620656682006-10-11T21:58:00.000+05:302006-10-11T21:58:00.000+05:30Thanks a lot, I have looking for a example or some...Thanks a lot, I have looking for a example or something for connect a client with an aplication in jboss with jaas and I find the answer here. It works!!Anonymousnoreply@blogger.com