Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Ghazala
Post subject: Error while instantiating a class reside in EJB module  PostPosted: Jan 24, 2006 - 09:25 PM



Joined: Dec 29, 2005
Posts: 3

I have two question:

1) I am trying to access a class from a jsp in a j2EE application.

- The class is in EJB module
- Class in interacting with an Ejb and one of its method(class method) is returning an interface that
has bussiness methods.
- I want to create an instance of that interface using method of that class in my jsp,so
that i can use the methods of interface

- Code for accessing class is :



<% AccessHome ah = new AccessHome();
com.genuitec.myejb.interfaces.HelloWorld bean1= ah.lookuphelloworld();%>

Message is <%= bean1.displaymessage() %>

I have imported the package of class using import,but i am having error on line
where i am creating the class as: " line breakpoint on line 27"

2) In an enterprise application which consists of web as well as ejb module, do we have to deploy EJB and web modules separately before deploying the j2ee project or directly deploy the J2EE application so it will automatically deploy ejb and web modules?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jan 25, 2006 - 02:40 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

1) Please have a look at our Enterprise Application Project quickstart guide and the TraderX project for examples: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/

2) You just deploy the Enterprise Application Project, this defines all the packaging and deployment rules and will package everything up nicely for you and deploy it as an EAR.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits