Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Naveen Sharma

Ranch Hand
+ Follow
since Mar 23, 2001
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 Naveen Sharma

I tried as explained in url http://theblasfrompas.blogspot.com/2008/04/jdbc-thin-connection-using-tnsnamesora.html

Still facing the Exception , I am surprised how come you overcome this, May be I have to switch to some other driver too

Exception in thread "main" java.sql.SQLException: Io exception: SO Exception was generate
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
Consideration to be taken care of, while using Watij :

1. Runs for IE till now, and NOT for any other browser.
2. Runs on Windows environment only
3. A JUNIT Wrapper over watij script may be a good way of execution. instead of beanshell.
4. Finally all can be automated in ANT build.

HTH
Naveen
11 years ago
hi,
what i think is
to limit the number of stateful beans instances in memory, the container can swap out stateful bean , saving its conversational state to a hard disk or other storage ("Passivation").. After passivation a stateful bean, the conversation state is safely stored away, along with the resources being used... when the original clients invokes a method, the passivated conversational state is swapped in to a bean("Activation").. this bean now resumes the conversation with the original client...
It shud be noted that the bean receives the activated state may not be the original bean instance..
Thus EJB does indeed support the effect of pooling stateful beans. only a few instance can be in memory, when there are many clients
As the session context(EJB Context) remains associated with the instance for the lifetime of the instance.. and if the instances are swapping to serve clients while(Passivation/Activation)... their context do come into the picture
correct me if i am wrong
Naveen
can't we have 2 datasources in one ejb-xml file..
in this way there is no need to put them into 2 jars

regards
Naveen
Go with a clean approach ... No. 1
hi all,
i think state will be maintained with Bean , managed by the container, using EJBContext...
think about in this way, suppose between the lulls, your bean get passivated...and container will save the state to some other media along with the context of bean...now the bean (instance) is free from resources and may be ready to server other clients...
now again the previous client comes.. this time the bean will be activated and restored its previous state..
so all("Bean(instance)+ BeanContext + Container") are responsible to maintain the converstaional state..
Hope this may help
David are you sure 3530 is java enabled ... i think it comes with only GPRS and MMS
16 years ago
hi,
as Xiao Qinglai said use repaint(int,int,int,int) instead of repaint()..
i have written the following code, my aim is to make a toggle,
when we press key "3" it should write the string..
and when we press key "9" it should delete the string from canvas...
please tell me where things are wrong
Thanks
Navi
//------ Following is the code


//--------Code ends here
16 years ago
I am surprised no one is having ANY idea about that
16 years ago
hi,
i m trying to draw a string at some random position on the screen
i have extended the Canvas class and overided the paint()
now say on some clicks i am generating a random x,y positions.. and drawing a string using drawString() of Graphics class
evrything works fine,
but i want the previously written string should be cleand up... and each time the text should is written at new x,y location, it should not messed up with previous written
i have called the repaint() of graphics class to repaint the text at new location... but as i donot find any update() in canvas class... how to achieve this
any ideas?
Thanks
Naveen
16 years ago
Geeta,
If the front-end is CF, how do you invoke a Servlet? (<cfinclud>?)
--------------------------------
Certainly Not, use (<cfobject type="java">
Sunitha,
In your mind, is there anything that J2EE can do but CF couldn�t do?
-----------------------------------
Code once written in J2EE can be embedded with any technologies (as middleware) now days.. but with CF you have to stck with it... e.g your business logic is written once with J2EE architecture, it can be merged with JSP, CF, PHP etc

Naveen,
As far as you know, does CFMX support portal?
---------------------------------------------
As far as i know it doesnt,
but they have provided such a simple way of integration, that you can use sun one portal server (formerly known as iPlanet Portal server)
, and integrate with your CF code... Thats why i have told you before, if you want your code(business logic) written once and run with multiple platforms, go with J2EE, No matter What FE you choose..
* Working in J2EE, you will find it has tremendous scope
Cheers
Nav
16 years ago
hi all,
as we are discussuing here either CF or J2EE,
i think both have their own advantages and disvantages.
In CF devlopment is very rapid in FE as well as BE
but J2EE Architecure is very robust and secure(generally used for large applications), also takes pretty good time to develope.
In CFMX, one can develope CFCs (Cold Fusion Components), writing your business logic ones and using again and again (like beans in java), they also have provided a very good support for xml and web services. if you compare these features with J2EE, there it will surely take more time.. cannot say anything about performance...coz CFMX is again java based..
well i think, CF is better for small aplication, and also we can use J2EE architecture with CF when ever we find it neccessary, like in some transcation management and secure area, although we have transaction manaagement support in CF too.
Cheers
Nav
16 years ago
hi,
i think you can use javax.microedition.media.control package in this aspect
By ToneControl interface there you can create tones
Hope this may help
Cheers
Navi
16 years ago
hi ryan,
open the preference --> security
and set the security domain to "trusted"
Hope this may help
Naveen
16 years ago