Oops! Thats silly! Well all set now but I got this error...
D:\Melvin\EJB>java CustClient
Exception in thread "main" javax.naming.NameNotFoundException: cust not
bound
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:167)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
at javax.naming.InitialContext.lookup(Unknown Source)
at CustClient.main(CustClient.java:11)
I guess this part of the jboss.xml holds the JNDI name I have to use...
<session>
<ejb-name>cust</ejb-name>
<jndi-name>cust</jndi-name>
<configuration-name></configuration-name>
</session>
Then why am I getting the not bound error?
Vasanth Dharmaraj
-----------------------
V A S A N T H . C J B . N E T
> -----Original Message-----
> From: Rickard �berg [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, June 19, 2000 6:42 PM
> To: jBoss
> Subject: Re: [jBoss-User] cant get the client running!
>
> 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]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]