File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 29219

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
I agree. Here's the link:
subject: POJO EJB Interaction
Similar Threads
EJB and Resource references
how to access one ejb with local interface from different application deployed in same server.
connecting to server DataSource using POJO.
How to use PostgreSQL with WSAD 5.1
how to lookup local interfaces?