Mrigasira Srinivas

Greenhorn
+ Follow
since Feb 28, 2001
Merit badge: grant badges
For More
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 Mrigasira Srinivas

Thanks Andy... That is what I was doing - putting the same object in session with different names. Copy seems to work.
21 years ago
Hello All,
I am placing an object containing data retrieved in session for displaying it on multiple screens. When the user clicks on the save button, I need to update the session object (such that I can display the changed data if there is an error for the user), and also have the old object in order to make some comparisons. I have tried placing the same object in session with two different names, but that did not help. Can someone please let me know what I am doing wrong?
21 years ago
Hello All,
I am working on a web-based application that has a series of forms that the user fills out. If the session were to time out, I need to save the data entered by the user before logging him/her out. Can anyone tell me how this can be done? Any kind of help in this regard - including source code - would be much appreciated.
Thanks
21 years ago
JSP
I am attempting to create a file consisting of data I retrieve from the database on a browser. I am able to create the file on the server side. Can anyone let me know how can I do it on the client side? Essentially, I should be able to ask the user to choose a folder to save the file and write the file there.
I also want to know how can I insert carriage returns in a string that I am writing into a text file.
Any help in this regards would be appreciated.
22 years ago
Hi all,
I am using weblogic6.1 for my application and an Oracle 8.1 database. I get a LockTimedOutException sometimes when I run the application. Can someone suggest a solution to this problem?
An immediate reply would be appreciated.
Thanks.
22 years ago
While running an application on weblogic 6.1 for a 2500 user base, I get an error stating "Too many files Open". Can anyone tell me what the problem could be and how can I resolve it? An early response will be appreciated.
22 years ago
Can someone tell me how can I clear multiple selection list box?
Regards
Yamini
I am using weblogic 5.1. Sometimes, when I try to create a deployed jar with ejbc, I get the following error:
java.lang.OutOfMemoryError
at java.lang.StringBuffer.append(StringBuffer.java, Compiled Code)
at weblogic.rmi.rmic.Remote2Java.stub_method_iterator(Remote2Java.java,
Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java, C
ompiled Code)
at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java, Compi
led Code)
at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java
, Compiled Code)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java, Co
mpiled Code)
at weblogic.rmic.runBody(rmic.java:54)
at weblogic.utils.compiler.Tool.run(Tool.java:80)
at weblogic.rmic.main(rmic.java:92)
at weblogic.ejb.ejbc.EJBCompiler.runRmic(EJBCompiler.java, Compiled Code
)
at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java, Compiled C
ode)
at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
at weblogic.utils.compiler.Tool.run(Tool.java:80)
at weblogic.ejbc.main(ejbc.java:353)
Can someone tell me why this happens and what is the possible solution?
Regards
Yamini
22 years ago
Hi All
I am using EJB to connect to SAP through an intermediate interface of Java classes. All the exceptions raised at the various stages, I am having them thrown back to the JSP. I need to catch the exceptions in my JSP and pop it up as an alert. How do I do it?
Thanks in advance
Yamini
22 years ago
When does one actually use Reflection API? My understanding is that one uses Reflection to load a class dynamically and invoke the methods within that class at runtime, especially when one does not know at compile time what methods have to be called? Does it make any sense to use Reflection API when at the time of writing the source itself I am aware of what methods need to be called and with what parameters?
Also, what are the disadvantages of using Reflection API? Does it slow down the system considerably?
23 years ago
Hi Vikram
You get the name not found exception when the jndi name you have given in your client is different from the one you mentioned in your descriptor. Check both the jndi names. In fact, when you deploy the bean in weblogic, on the server you can see the jndi name that your home interface is bound to. Probably that will give you an idea as to where you are going wrong. Do revert if you have any queries.
Yamini
Hi
You could check out the following site for all info on weblogic: http://edocs.bea.com/index.html
And you could download a 30-day eval version of the software from http://www.beasys.com/download.shtml
I have been working on weblogic for a year now, and I can tell you that it is pretty easy to learn and work on. Shoot if you have any queries.
Yamini
23 years ago
Hi
I am not sure if I got you right... but we have used reflection in our project to call methods and fields within a bean. What we did was this: we have a class, within which we load the bean class and call the methods of the bean class. This class implements an interface which the remote interface of the bean extends. Is this what you are looking for?
Yamini

Originally posted by Mark Herschberg:
Can I take an EJB class and use reflection to view its methods and fields? I imagine I should be able to do this, because all Java objects should support reflection (yes, technically the support is in the JVM, not the object). This also, I believe this is similar to what many vendor tools do when they automatically generate the EJB home interface, the home object, the deployment descriptor etc.
Two notes:
1) I assume, as with normal reflection, that I can do this on the compiled EJB, i.e. the bytecode I get when I buy an off-the-shelf EJB.
2) I am not doing this at run time. I just want to take an EJB I bought from some third party, and, say, generate a list of its methods.

Am I understanding this right?

--Mark
hershey@vaultus.com



The Unified Modelling Language User Guide by Grady Booch could be a good starting place.
Hi Gopi,
You need to set your classpath to your weblogic folder in order to start it. Set your path to c:\weblogic\bin where 'c' is the drive in which you installed your weblogic. Also set your classpath to c:\weblogic\lib\weblogicaux.jar and c:\weblogic\classes. Again 'c' is your weblogic drive. Hope this helps. Do revert for any clarifications.


Yamini