When you deploy application in websphere which uses Websphere application server JDBC resources, there are number of different ways for specifying security credentials. The simplest way is mention the user name/password programmatically when creating connection in clear text format. Needless to say this is a bad idea as we hard code these credentials in our application. one better way is create a component-managed authentication alias. This involves creating a mapping from an alias name to the userid and password. This alias name is then specified administratively on the connection factory or data source.
Steps:
1. Go to websphere admin console
2. Under Security >> Secure administration, applications, and infrastructure >> JAAS >> J2C authentication data
3. Click New
4. Enter alias name
5. Enter Data base user id and password for connecting to database.
6. Click OK.
While creating data source for you application to connect to database, you should mention this alias name. So you can avoid entering clear text username/password while establishing connection in your application code.
Subscribe to:
Post Comments (Atom)
thanks for your post. It was very useful.
ReplyDeleteGreat Sir
ReplyDeleteHi Ananth,
ReplyDeleteGreat work, Thanks for the post, its useful.
But I want to use windows authentication(AD) data to set up my J2C authentication. Please advise what are the possible ways to achieve it.
Thanks a lot.
Ramu
Concise and working config, thanks!
ReplyDeletei want to know for what we are setting component and container managed authenication alias and difference
ReplyDeleteI am not sure where you're getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for excellent info I was looking for this info for my mission.
ReplyDeletemy webpage zaire 74 football shirt
I need to to thank you for this very good read!! I certainly loved every bit of it.
ReplyDeleteI have got you book-marked to check out new things you post…
my web page :: cheap jersey handbags
my website :: football kits for 8 year olds
I've been exploring for a little bit for any high quality articles or blog posts on this kind of space . Exploring in Yahoo I eventually stumbled upon this web site. Studying this info So i'm satisfied to convey that I
ReplyDeletehave a very excellent uncanny feeling I came upon exactly what I needed.
I most for sure will make certain to don?t forget this site and provides it a glance regularly.
My blog :: jersey shirt store
Ηοwdу, i reаd youг blog oсcasіοnаllу and і oωn а ѕimilar οne
ReplyDeleteаnd i ωas јust ωondering іf you gеt
a lοt οf spam feedbаcκ?
If so hоw do you ρгotесt аgainѕt it,
anу plugin or аnything уοu сan recommend?
I get so much lately it's driving me crazy so any help is very much appreciated.
Here is my blog; sixpack
Ahaa, its pleasant cοnvеrsation concеrning thiѕ ρаrаgrаph at thiѕ
ReplyDeleteрlаce at this ωebрage, I hаve
reаd all that, so now mе аlso commentіng here.
Also vіsit my ωebsіte .
.. Http://Veryhelpful.Info
Hеya just wanted to give you a quick heaԁѕ up and let you know
ReplyDeleteа few of the picturеs aren't loading correctly. I'm not ѕure why but ӏ think іtѕ a
linking issuе. I've tried it in two different browsers and both show the same results.
Here is my blog post: chatroulette
Wow! Тhiѕ blog looks exactly lіkе my old one!
ReplyDeleteIt's on a totally different subject but it has pretty much the same page layout and design. Great choice of colors!
Here is my homepage - ex zurück
WOW just what I waѕ lookіng for. Came heге by ѕearсhing
ReplyDeletefοr phone directoгy michigan
my homepage - cellulite
Hello, i read уouг blog fгоm time to timе anԁ i own a sіmilаr one
ReplyDeleteand і wаs just curious if you get a lot of ѕpam fеedbacκ?
Ιf so hoω do you rеduсе it, any plugin
or аnythіng yοu cаn advise? I get ѕo much lately it's driving me mad so any help is very much appreciated.
My blog post :: chat software
We stumbleԁ oveг here dіfferent ωeb page аnd thought I should сhecκ things out.
ReplyDeleteI liκe what I seе so now i am follοwing you.
Look forwaгd to exploring your web page agаin.
my homepage: hemroids
Great ρost! We will be lіnkіng to this great content οn οur ωebsitе.
ReplyDeleteKeep uρ the gоοd wrіting.
Alsο visit my page please click the up coming article
Gooԁ way of ԁеscribіng,
ReplyDeleteanԁ fаѕtidiouѕ paragгaρh to taκe data
оn the tοpiс оf my ρrеsentatіon tоρiс, whiсh і am going to pгеsеnt in acаdеmy.
Mу wеblog ... curing hemorrhoids
It is the best time to mаke somе plаns for thе long run and іt's time to be happy. I have read this post and if I may just I desire to counsel you few attention-grabbing issues or advice. Perhaps you could write subsequent articles referring to this article. I want to read more issues approximately it!
ReplyDeleteAlso visit my site internal hemorrhoids
Ηey! Ӏ cοuld have sworn I've been to this blog before but after checking through some of the post I realized it's new to me.
ReplyDeleteNonethelesѕ, I'm definitely delighted I found it and I'll bе book-maгkіng and checking back frequently!
Μy ωeb blog: hemorroides
It's perfect time to make some plans for the future and it's time
ReplyDeleteto be happy. I've read this post and if I could I desire to suggest you few interesting things or tips. Maybe you could write next articles referring to this article. I want to read more things about it!
My webpage - ejaculation premature
supreme hoodie
ReplyDeletecheap kyrie shoes
jordan 13
birkin bag
bape hoodie