Win a copy of Head First Android this week in the Android forum!

Venkat Ammisetty

Ranch Hand
+ Follow
since Nov 25, 2000
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 Venkat Ammisetty

Thank's for your clarification

Vankat
20 years ago
Kyle ThankQ for refering site.
What my problem is,we implemented JMS in Weblogic5.1 and JBoss-Tomcat using the respective QueueNames by refering there sites.Our application is we are placing mails in JMS Queue and sending all the mail.
We are unable to know the Queue names in WAS 4.0.
Previous we set the class path for jms.jar and do the things.
After browseing IBM info center I can to know that jms is available in ujc.jar in WAS 4.0.
I set the class path and tried to run,it is giving NameNotFoundException.
I guess I require MQSeries software in addtion to jms jar in WAS4.0
Am I clear and I am in wrong track
Please advice me,in the mean time I will read the sites you refered and try to solve the problem.
Venkat
20 years ago
ThankQ Kyle
Now my doubt is cleared from your reply.
I saw your home page too.
You have enough experience and knowledge.
Can you refer me some example programs in JMS implemented on WAS 4.0
Thank's a lot once again.
venkat
20 years ago
ThankQ for your reply
yes, we will set the time for HTTPSession in web.xml
Now I would like to set the time(lifetime) for Statefull sesion bean not for the HTTPSession.
My intension is "I would like to set time to my stateful bean " suppose it should be destroied only after certain amount of time.
Is there any property I have to set in admin or I have to acheive it through programming.
I am integrating my project(my role is to integrate and deploy the EAR file) it having login bean as statefule bean,if there exit any time setting for stateful bean through admin then I will do and let me know that otherwise I will request my programmer to change there logic.
Venkat
20 years ago
Hai
can I specify life time of a stateful session bean?.If yes where do I do that in App server or in my program.
The reason to ask above question is
I am having a logon bean which is stateful session bean.Once the user logs in ,then I will bring the info. regarding that user into session and use that info. in other JSP pages.Once it is done the login bean is getting destroyed.
Now the problem is, the session is time based (i.e we can specify how long session exits in web.xml file or in admin properties in WAS 4.0).
If that session experies then I am getting problem,because I am loseing my data available in session.At this time the bean is also destroyed then I am getting ERROR(page can't be displayed).
If I am able to specify the lefetime of a statefull session bean,I think I can over come this problem.
I hope I am clear.
If my design is not good suggest me the better one.
I am using WAS 4.0 Single Server Advanced Edition

Venkat
20 years ago
Hai
I am having an application which gets the user information after he logs into the system and puts that info. into session.But this session is getting disabled in 10 min. even though I changed the session management properties in admin.
I am using WebSPhere 4.0 Single server advanced edition.
Any one could you please guide me to increase the session time.

venkat
20 years ago
Yes,JBoss does not support Clustering and SSL in lower versions.
I would like to know where you posted that report.

Bye
Venkat
20 years ago
Hai
You post it to this only.
Then we can go through it.
Commartial Comparisions are all ready there at www.flashline.com/components/appservermatrix.jsp
I also worked on three servers,my opinion is Jboss is best for lot of reasons.(This is only my personal opinion with the exp. I am having with servers from developers point of view and cost)

bye
Venkat
20 years ago
hai
I need your help in implementing JMS QueueConnectionFactory in WAS 4.0
The following is the part of code to implement JMS with QueueConnectionFactory.I am pasting code below.My actual application is to put all e-mails list in Queue and send them when ever my mail server is free.
Please let me know why I am getting this exception and educate me in this regard if I am wrong in any QueueConnection Names.
But i am getting the following Exception
javax.naming.NameNotFoundException: QueueConnectionFactory
Partial CODE:
<%@ page language="java" <br /> import="javax.naming.*,javax.jms.*,java.util.* " %>
<%<br /> String JNDI_FACTORY="com.ibm.websphere.naming.WsnInitialContextFactory";<br /> String JMS_FACTORY="QueueConnectionFactory";<br /> String queueName="A";<br /> try{<br /> QueueConnectionFactory qconFactory;<br /> QueueConnection qcon=null;<br /> QueueSession qsession;<br /> QueueSender qsender;<br /> Queue queue=null;<br /> TextMessage msg;<br /> ObjectMessage omsg;<br /> System.out.println("hello");<br /> out.println("before hash table");<br /> Hashtable env = new Hashtable();<br /> env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);<br /> env.put(Context.PROVIDER_URL, "iiop://localhost:900");<br /> InitialContext ic=new InitialContext(env);<br /> out.println("before jms lookup");<br /> qconFactory = (QueueConnectionFactory) ic.lookup(JMS_FACTORY);<br /> qcon=null;<br /> qcon = qconFactory.createQueueConnection();<br /> out.println("just for fun");<br /> qsession = qcon.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);<br /> out.println("jndi lookup is successfull");<br /> <br /> <br /> queue = (Queue) ic.lookup(queueName);<br /> <br /> qsender = qsession.createSender(queue);<br /> omsg = qsession.createObjectMessage();<br /> qcon.start();<br /> Vector v=new Vector();<br /> v.addElement("venkat");<br /> omsg.setObject(v);<br /> qsender.send(omsg);<br /> qsender.close();<br /> qsession.close();<br /> qcon.close();<br /> System.out.println("vector is put in the queue");<br /> } catch (Exception ne) {<br /> <br /> out.println("wrong queue is"+ne);<br /> }<br /> <br /> %>

Thank's
Venkat
20 years ago
ThankQ for your suggestions
I too thought that my solution is not the best one but I don't have any alternative to do that.
I like your second suggestion.copying in startup servlet.
we do have 2 startup servlets,we are loading them by load on start tag in XML. I will try that.
Once again thankQ for your suggestion.
One final request is if any one having JMS examples program which runs under WAS 4.0 using Queues please mail me.
I need it deadly.we implemented it in WebLogic and JBoss but the QueueCOnnectionFactories are different in WAS.
Please helpme in this regard.
Bye
Venkat
20 years ago

Yes I need document root.The reason is I am saving Image file during the program.When ever the Images should be retrived I have to refer the same directory where I placed the Images.I am able to place the images and retrive by placeing in web apps folder,but the problem is when ever I try to install or deploy the EAR file with slite modifications.The previous files and directories in the EAR file will be removed and new files and directory structure will be created.In that case I will lose the Images already added.
What I want is to save the Images perminetly?
I hope I am clear
Thank's
venkat
20 years ago
Hai
What is the document root folder in Websphere 4.0? I want to store some files in document root folder while running the program. So, I require document root folder for Websphere, if any body know please help me.
Thank's
Venkat
20 years ago
Hi
I would like to know the what are Queue Connection Factories that WebSphere 4.0 Single Server Version supports.
In WebLogic 5.1 I used as follows
public final static String JMS_FACTORY="QueueConnectionFactory";
and in Jboss as follows
public final static String JMS_FACTORY="RMIQueueConnectionFactory";
What is the equalent in WebSphere?

Thank's in advance
Venkat
20 years ago
Hai thank's for user suggestions.
Yes there is a mistake in my Initial Context Factory that is case sensitivity i.e. I used Websphere insted of websphere in the following context and port number for URL is 900.
com.ibm.websphere.naming.WsnInitialContextFactory
iiop://localhost:900
Now I am able to run my application on WebSphere 4.0 Single Server Edition.
The Initail Context Mentioned as
com.ibm.ejs.ns.jndi.CNInitialContextFactory
is also correct but it is deprecated that's why I used earlier one.
Thank's one and all for your help.
Bye
Venkat
20 years ago
Hai
Can any one tell me what could be the error in the following code
Hashtable ht2=new Hashtable();
ht2.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.Websphere.naming.WsnInitialContextFactory");
ht2.put(Context.PROVIDER_URL,"iiop://localhost");
Context cxt=new InitialContext(ht2);
I am getting the following exception
[01.09.20 15:03:32:090 PDT] 6130ab1c WebGroup X Servlet Error: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory: javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory. Root exception is java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
Begin backtrace for rootCause
java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
Is any thing wrong in Initial Context Factory?
Thank's in advance
Venkat
20 years ago