*
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


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 "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: 9924
    
158

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connectionFactory Injection
 
Similar Threads
JMS lookup in JBoss3.2.3
Loopup JMS resource in Sun One Application Server
error on import javax.jms.*;
JMS look up for JBoss 3.2.3
Servlet JNDI lookup fails for Connection Factory on Jboss