poonks Arasu

Greenhorn
+ Follow
since Jun 20, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by poonks Arasu

Hi,
I am having a client socket from where i communicate with server socket.
The process flow is as follows
1) open socket
2) write data into server socket
3) Read data
4) write acknowledgement
5) Close socket
The whole process is looped again and again depending on some parameter.
SomeTimes(not all the time) we found from the server socket program during the loop,the data of second loop arrives the server socket before the acknowledgement(write) of the first loop arrives although second loop is started after closing the socket of the first loop.
Can anyone please explain why this happens and any solution to avoid this without modifying server socket.
Thanks in advance,
poonks
Thanks Lasse,
Actually we am planning to call Local interface one EJB from another EJB in same M/c.So initially i am trying out how to call local interface.Can you please clarify me Instead of a standalone call can i do the same call from another EJB.
Thanks in advance
poonks
Lasse,
Can you please throw more light into it.
Am I supposed to call this from servlet/EJB only
(I will chnage name to comply with the 'Ranch naming policy)
Thanks,
poonks
Hi
I am providing the lookup code
Client lookup :
Properties props = System.getProperties();
Context ctx = new InitialContext(props);
examples.HelloLocalHome home = (examples.HelloLocalHome)ctx.lookup("HelloLocalHome");
HelloLocal hello = home.create();
System.out.println(hello.hello());
hello.remove();
Calling code
java
-Djava.security.policy=../java.policy
-Djava.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
-Djava.naming.provider.url=t3:ip ort
examples.HelloClient
thanks,
poonks
Hi i am giving same
EJB DESCRIPTOR:
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>Hello</ejb-name>
<home>examples.HelloHome</home>
<remote>examples.Hello</remote>
<ejb-class>examples.HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>Hello</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>examples.HelloLocalHome</local-home>
<local>examples.HelloLocal</local>
</ejb-local-ref>
</session>
</enterprise-beans>
</ejb-jar>
VENDOR SPECIFIC DESCRIPTOR:
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Hello</ejb-name>
<reference-descriptor>
<ejb-local-reference-description>
<ejb-ref-name>Hello</ejb-ref-name>
<jndi-name>HelloLocalHome</jndi-name>
</ejb-local-reference-description>
</reference-descriptor>
<clients-on-same-server>true</clients-on-same-server>
<jndi-name>HelloHome</jndi-name>
<local-jndi-name>HelloLocalHome</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
I am using weblogic 7.0 and i am making an local call on ejb using a client in the same environment.I am getting this exception while lookup.
Is there anything i missed in client program/ejb descriptors/weblogic descriptors.
javax.naming.NameNotFoundException: Unable to resolve 'HelloLocalHome' Resolved: '' Unresolved:'HelloLocalHome' ; remaining name 'HelloLocalHome'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:338)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:333)
at javax.naming.InitialContext.lookup(Unknown Source)
at examples.HelloClients.main(HelloClients.java:37)