• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Unable to Connect EJB 3.0 from Client.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using EJB 3.0 with WebSphere server 7.0 in windows 64 machine.
I am trying to connect form Client to EJB 3.0 bean.

The sample project is as follows
--------------------------
DellEJB3Local.java:
--------------------------
package dellejb3;
import javax.ejb.Local;
/**
* DellEJB3 local interface
*/
@Local
public interface DellEJB3Local {
public void Hello();
}
--------------------------
DellEJB3.java:
--------------------------
package dellejb3;
import javax.ejb.Stateless;
/**
* Session Bean implementation class DellEJB3
*/
@Stateless
public class DellEJB3 implements DellEJB3Local {
/**
* Default constructor.
*/
public DellEJB3() {
}
public void Hello()
{
System.out.println("HI");
}
}

I am facing lot of issue to connect the EJB from some Client.

1) After deploying the EJB, I am unable to see JNDI name in Webshpere 7.0
2) How to connect to EJB from Client. I tried lot of combination but dose not work.

3) META-INF folder contains only MANIFEST.MF file.

Can you please let me know how to lookup in this case.

Thanks
With Regards
Hemant Joshi.
 
Ranch Hand
Posts: 343
Mac OS X Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use code tags.
 
Ranch Hand
Posts: 65
Netbeans IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
shows here that you only have a LOCAL interface, you should be able to acquire the EJB thru injection. But then the question is what is your client? it may need to use a remote interface and do a lookup for the EJB.
 
Grow a forest with seedballs and this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic