Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

configure "private" datasource

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
currently my datasource has a jndi name of "myDS", and anyone can do a remote lookup to my server using that jndi name and get a DataSource. is there a way to keep that private for only components on that server, and force them to use a resource-ref to get access to the datasource? (the slsb's are currently doing a remote lookup themselves to get to the datasource).

i've tried giving the jndi name of "java:/myDS" to the datasource, but then the bean couldn't lookit up using a resource-ref configured in weblogic-ejb-jar.xml as:

<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/myDS</res-ref-name>
<jndi-name>java:/MyDS</jndi-name>
</resource-description>
</reference-descriptor>

any ideas/suggestions?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic