This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes POJO EJB Interaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "POJO EJB Interaction" Watch "POJO EJB Interaction" New topic

POJO EJB Interaction

B Porter

Joined: Feb 04, 2009
Posts: 11
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,
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30057

You can put anything you want in the JNDI. It's a little odd, but it should be possible.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
subject: POJO EJB Interaction
Similar Threads
How to use PostgreSQL with WSAD 5.1
connecting to server DataSource using POJO.
how to lookup local interfaces?
EJB and Resource references
how to access one ejb with local interface from different application deployed in same server.