jQuery in Action, 3rd edition
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
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
author & internet detective

Joined: May 26, 2003
Posts: 32628

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: POJO EJB Interaction
It's not a secret anymore!