Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POJO EJB Interaction

 
B Porter
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am trying to set up an application that is designed to act somewhat like a datasource but for a proprietary software connection.
I have made a POJO that I want to bind to a jndi context.

Afterwards I want to use an EJB to look up the pojo and grab one of the 'datasource-like' resources. I have been doing research on this
and I am curious, there is plenty of talk about trying to EJB lookups from pojos but not the reverse. Is it possible? And if so, would it be
just a call to the name in jndi?

Thanks in advance,
BP
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put anything you want in the JNDI. It's a little odd, but it should be possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic