• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connectionFactory Injection

 
Ramya Chowdary
Ranch Hand
Posts: 252
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic