monojit choudhury

Greenhorn
+ Follow
since Nov 20, 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 monojit choudhury

Hi
I am trying to access the dbms_aq package. But everytime I am getting an exception as, the package is not defined.
I am logging as a user who has a q_admin role.
Please help.
16 years ago
Hi
How to restrict a canvas within a jScrollPane?
I mean, I am adding a canvas to a JscrollPane.I keep on increasing the size of the canvas, during runtime but the canvas overlaps the scrollPane and goes beyond that, which i dont want to happen.
All i need is how to make the canvas browseable, no matter how big it is, from within the scrollPane using the scrollBars??
16 years ago
Hi
Is there any way by which i can output an xml block, which I am processing using xslt, as a string?
eg
<Element>
<element1></element1>
<element1></element1>
<element1></element1>
<element1></element1>
</Element>
Using xslt the output I should get is
<element1></element1>
<element1></element1>
<element1></element1>
<element1></element1>
I am using xalan as the processor.
Hi
I want to store a file object as a blob in the database using CMP.How can i do it using weblogic?
16 years ago
Hi
Is there any way by which i can get the size
of a string in pixels? I mean depending on the
font size and style,i get the length of the string
in pixels.
16 years ago
hi
Is it possible using RMI that two programs access the same hashtable so that whenever one program modifies the hashtable the other one gets the updated data?
17 years ago
oops sorry,the code seems to've left out somewhere.
well........here it is
< %@ page language="java" import="javax.ejb.*,javax.naming.*,java.io.*,java.util.*,java.text.*" %>
< %<br /> <br /> int count=0;<br /> try<br /> {<br /> Properties prop=System.getProperties();<br /> prop.put(Context.INITIAL_CONTEXT_FACTORY,<br /> "weblogic.jndi.WLInitialContextFactory");<br /> Context ctx= new InitialContext(prop);<br /> StateFullHome home =(StateFullHome) ctx.lookup("MyStateFullHome");<br /> int i=1;<br /> StateFull home =home.create(i);<br /> >%
< HTML >
< BODY >
< H2 >U have Entered this page < %home.count()%> number of times< /H2>
< /BODY>
< /HTML>
< %<br /> }<br /> catch(Exception e)<br /> {<br /> <br /> }<br /> <br /> %>

[This message has been edited by Thomas Paul (edited December 10, 2001).]
Fixed for formatting
[This message has been edited by Thomas Paul (edited December 10, 2001).]
u can access the session bean's business logic method via the remote interface.u can write the same way in jsp as u wud've written in a .java class file.
'm writing a simple example .jsp code which maintains the page count.
<%@ page language="java" import="javax.ejb.*,javax.naming.*,java.io.*,java.util.*,java.text.*" %>
<%<br /> <br /> int count=0;<br /> try<br /> {<br /> Properties prop=System.getProperties();<br /> prop.put(Context.INITIAL_CONTEXT_FACTORY,<br /> "weblogic.jndi.WLInitialContextFactory");<br /> Context ctx= new InitialContext(prop);<br /> StateFullHome home =(StateFullHome) ctx.lookup("MyStateFullHome");<br /> int i=1;<br /> StateFull home =home.create(i);<br /> >%
<HTML>
<BODY>
<H2>U have Entered this page <%home.count()%> number of times</H2>
</BODY>
</HTML>
<%<br /> }<br /> catch(Exception e)<br /> {<br /> <br /> }<br /> <br /> %>
hi
making ant work is simple. just create an ANT_HOME variable in ur environment settings(WINDOWDS)which wud point to the dir where the ant related files are located.put $ANT_ROOT/lib/ant.jar in the classpath and $ANT_ROOT/bin in the path.
this should solve ur problems
17 years ago
hi,
i m not sure if this topic can be discussed here,but i've got no other options.
while working with jakarta cactus(framework for testing server side applications,including ejbs),i got the following error.
RUNNING THE TESTCASES
[junit] Running TestAll
[junit] ,.............................Inside TestAll.java
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.162 sec
[junit] Testsuite: TestAll
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.162 sec
[junit]
[junit] Testcase: testConvert took 1.142 sec
[junit] Caused an ERROR
[junit] InputStream does not contain a serialized object
[junit] java.io.StreamCorruptedException: InputStream does not contain a seriali
zed object
[junit] at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
[junit] at java.io.ObjectInputStream.<init>(Unknown Source)
[junit] at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpCl
ient.java:148)
[junit] at org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCas
e.java:422)
[junit] at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:13
0)
[junit] at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:
371)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:131)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(
JUnitTestRunner.java:202)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main
(JUnitTestRunner.java:326)
[junit]

Can anyone tell me what has gone wrong here ?
thanks in adv
:-)
hi guys,
thanks for ur replies,i really appreciate that.
well.......i think i got an answer.please let me know if this will work.there are 2 solutions for this.
1) we can create diffrent jndi names for each Database type.lets say we wanna use 5 diffrent databases.so we'll have 5 diffrent jndi names.so as a result of this we'll have 5 entity cmp beans .well instead of a single entity bean,we've got 5 beans.this i dont think will be a problem as long as the container ddoent mind storing those.i've checked it out,n found that the container doesnt have any probs doing that.SO each entity bean will connect to a specific database.
2)another solution might be,to bypass the container.i think using the API exposed by weblogic this can be done.but i m not sure how to go about it.can anyone give any ideas as how this can be done?
ya i got that,but when i want to connect to 5 different databases(lets say one using oracle,one using SQLServer,etc)i cant do that in a single Deployment descriptor or can i? According to my knowledge a single DD can hold the information about a single database.
hi
i have a problem.the software i m working on,requires a single entity bean connect to 5 different databases.i know this can be done thru BMP.but is there any other solution.i mean can this be done thru CMP also?
thanks in adv
hi,thanks for the reply.
i m using jdk 1.2.2. and according to me theres a bug in the GC.
i'll explain my problem to u in details.I have a Vector which has array objects in it.now if i go on adding more array objects to it,as soon at it crosses the default capacity,i.e 10,it creates a new Vector and does an Array copy with the 10+1 elements in it(i've gone through the souce code of the Vector API).so the reference to the First Vector is set to null,but since the arrays in it r referefcing to some other objects,the vector doesnt get garbage collected and i m getting a memory leak in my program coz of this.
18 years ago
hi
i m having a problem with the garbage collection.Its regarding Vectors.....but i wont go into details of it.just let me know...if A references B and B references C ,and after i set A to null,shouldn't the object to which A was referencing be garbage collected?
18 years ago