GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes connectionFactory Injection 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 "connectionFactory Injection" Watch "connectionFactory Injection" New topic
Author

connectionFactory Injection

Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
I am trying to inject connection factory or TopicConnectionFactory into EJB with following code,



But it is failing to inject that,

While at the same time, in EJB @PostConstruct method, I can do following and it is working fine




Any Help with this ?

EDIT: I am using Websphere 7.0 Application server
Pallav Bora
Ranch Hand

Joined: Oct 13, 2009
Posts: 73
Just to confirm.. are you using EJB 3?
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
Yes
I am trying to inject connection factory or TopicConnectionFactory into EJB with following code,

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

Pratap koritala wrote:I am trying to inject connection factory or TopicConnectionFactory into EJB with following code,



But it is failing to inject that,

What error do you get?

[My Blog] [JavaRanch Journal]
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
Application Server says, Injection failed JNDI not Found

EDIT: Will let you the exact error, Once I get hold of this app
 
GeeCON Prague 2014
 
subject: connectionFactory Injection