This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connectionFactory Injection

 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to confirm.. are you using EJB 3?
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
I am trying to inject connection factory or TopicConnectionFactory into EJB with following code,

 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application Server says, Injection failed JNDI not Found

EDIT: Will let you the exact error, Once I get hold of this app
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic