Hey!
"Dharmaraj, Vasanth (CTS)" wrote:
> Guys that quick. Thanks for the replies. But I keep getting the same error!
> I tried everything you guys told. Then I tried recompiling the client. And
> guess what it wont compile either(I had compiled it yesterday!). The error
> it dumps is--
> D:\Melvin\EJB>javac CustClient.java
> CustClient.java:12: cannot access javax.ejb.EJBHome
> file javax\ejb\EJBHome.class not found
This indicates that you do not have ejb.jar in your classpath when you
compile your client.
> Customer c = cust.create(2, "Vasanth", "CTS");
> ^
> CustClient.java:13: cannot access javax.ejb.EJBObject
> file javax\ejb\EJBObject.class not found
> System.out.println("Initial Values..." + c.getCustID()+ " "
> + c
> .getName() + " " + c.getAddress());
> ^
> 2 errors
>
> This might look silly but I cant set it right! Am I doing something rather
> Silly???
>
> A clarifications--
> * While I deploy in Weblogic I have to use something as weclogic.ejbc to
> compile the JAR file. This creates the stubs and skeletons and the Home and
> Remote Implementations I guess. Is there a similar thing for jBoss? if we
> dont have to do these when are they created?
jBoss does not have anything like that since we create the proxies we
need dynamically at runtime. This is much better since
1) there are less classes to keep track of
2) it is much faster (it takes about 1 sec. create these classes at
runtime)
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]