Originally posted by clement valentine:
Hi guys,
It worked when I set "transacted" to false.
Old ---> QueueSession qsession = qconnect.createQueueSession(true,0);
New ---> QueueSession qsession = qconnect.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
Also I realised that Session.AUTO_ACKNOWLEDGE is 1 and not 0! For that matter I can't find out what the static value '0' is in the javax.jms.Session API. Does '0' mean NO_ACKNOWLEDGEMENT?
According to the WLS doc. when "transacted" the ackowledge value is ignored. But somehow this didn't seem to work. Can anyone explain that for me please?
Whats the effect of setting the "transacted" to false? Does it mean that a rollback is not possible if anything down the line fails?
Thanks guys,
Clement
[ January 19, 2005: Message edited by: clement valentine ]
Originally posted by Malli Raman:
Please try to check the same through normal java application program instead of MDB. In general developer will get the problem related to network/lookup of Queue.
Originally posted by Rupesh Raut:
Hi,
I am getting "could not found coonection" error message.
I am trying to send message to another WLS server queue from onMessage()
method of Message Driven Bean of WLS server. But it is raising error at following line
queueSessionLc = conLc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
What is wrong and what are the solutions for sending message on another WLS queue.
Thanks
![]()
Originally posted by Ramesh D:
Hi Guys,
I developed one J2EE Project on WSAD 5.1.1...
I have one more application ejb jar file is there. so i have to use that ejb jar in my current application . so i added that jar file in WEB-INF/lib/
folder in WEB Project .But its not recognising the JAR file . The JNDI name not found is coming .Is It right way to add that jar ..otherwise how and where to add that jar ...how to run that jar...
PLZ Help me
Thanks in Advance
Originally posted by Nalini Reddy:
Hi
I am unable to find that..Could u please guide me..
Thanks and regards
Nalini.
Originally posted by H Sivad:
Thanks. I have 1.25G memory, but just changed the virtual from 1526 max to 3072. I'll let you know how that works.
H
Originally posted by Nalini Reddy:
Hi All,
I have written a small HelloWorld ejb and have also deployed successfully on Jboss3.0.6_tomcat-4.1.18.
But when i try to run the client program,i get Exception in thread main:NoClassDefFoundErrorrg/jboss/logging/Logger error.
Could any of you please help me out soon.
My client ejb is as follows:import java.rmi.RemoteException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import java.util.Hashtable;
public class HelloClient
{
public static void main(String args[]) throws Exception
{
// String JNDI_NAME ="ejb20-Hello-HelloHome";
Hashtable h=new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
h.put(Context.PROVIDER_URL, "localhost:1099");
h.put("java.naming.factory.url.pkgs",
"org.jboss.namingrg.jnp.interfaces");
InitialContext initial=new InitialContext(h);
Object obj=initial.lookup("ejb/Hello");
HelloHome home=(HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
Hello hello=home.create();
System.out.println(hello.hello());
hello.remove();
}
}
Thanks and regards
Nalini.
Originally posted by Murtaza Husain:
hi there,
I had run in with the same problem of memory out of space. As a solution i had increased my RAM to 1 GB. Try also increasing your virtual memory. After doing all this i had not run into the problem. You can try them and reply me back
Originally posted by Pradeep Bhat:
Yes.
Originally posted by Steve Buck:
Hrm.
Problem with polling: I just don't like that "design". To me it just seems kind of shoddy, ya know?![]()
As for the client count...each site will have anywhere from 25 to 50 concurrent clients.
[ November 30, 2004: Message edited by: Steve Buck ]