Akshay Kumar

Ranch Hand
+ Follow
since Feb 24, 2004
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 Akshay Kumar

hi,
i want to control the timers restoring after startup of jboss. the problem that i am facing is after i cancel a timer, it cancels it but unable to remove the timer from db. so, when i restart my jboss, the unremoved timer restored and resulting in issues.

i tried by manually removing all records from the table "TIMERS" using the tool "DatabaseManagerSwing.class" from hsqldb.jar file. and it removed all records but when i restart jboss, restores the timer. From where does it restore? other than class "DatabasePersistencePolicy.class", any other being used to persist the timer?

and i used the values like ("org.hsqldb.jdbcDriver", "jdbc:hsqldb:hsql://localhost:1701/", "sa", "") i.e., the local db maintained by the container, to get a connection.

thanks.
15 years ago
hi,

For each deployment, it creates a respective jar file in ....default>tmp>deploy directory but where are EJB container generated implementation classes of Home and Remote interfaces located in JBoss 4.0? plz, help me locate them.

thanks.
15 years ago
hi,

i need to persist data somewhere so that only my java class could able to update it for further processings.

since, the admin of the database is going to be with the client, i could not store it there because they have access to all corners. and also, admin rights will no longer be with me.

so, is it only way to persist simple data in a database/file in "an encrypted form". or is there any other means to escape from admin to access it.

any effort would be appreciated.

thanks.
15 years ago
i have to look into it. why because i'm running a timer which i need to restart it manually after a certain period of suspension. helplessly, the API doesn't support here by providing methods like suspend() and resume(), which could be controlled by programmers.

well, after a considerable amount of effort, i found those db operations from "C:\jboss-4.0.0\server\default\data\hypersonic\localDB.script". clearly, the problem now persists is at the execution of a tool for creating sample tables, in-memory using the command
"java org.hsqldb.util.DatabaseManagerSwing". it opens up with a swing GUI and with the default values in it when i click OK, it throws..........

Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: java/sql/Savepoint
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hsqldb.util.ConnectionDialogSwing.createConnection(Unknown Source)
at org.hsqldb.util.ConnectionDialogSwing.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

thanks.
hi,

i read in ejb timer tutorials that container persists the running timers and making it to resume its operation once the EJB container is up. so, how does this persistence happens? where does the details of timer gets stored and retrieved back? need some comments on this at programming-level. any effort towards this wuld b appreciated.

thanks.
Invoking cancel() would cause the timer and all its associated expiration notifications to be cancelled but is there any way to suspend a timer and resume from the point where it was suspended? i'm using jboss-4.0.0.

thanks.
hi,
i'm a starter to jboss-4.0.0. could anyone make a way up by clearing this error. 'm trying to run a simple ejb with a Client.




thanks.
15 years ago
well, here, in my application, i'm displaying rows of textfields(the count of textfields is dynamic) in a jsp and i need to get the values from each of these fields.

straight to the point, for the number of textfields it generates possess the same name "quantity" in the interpreted HTML code. hence, i culdn't get value(what user enters) from a particular textfield.

infact, i tried out using "quantity<%= index%>" to distinguish each of textfields. but, since it is a dynamic thing, i culd not figure out as many getter and setter methods in its corresponding form.



how, to resolve this logic. any efforts towards here wuld b appreciated.
thanks.
15 years ago
well, when we use submit button, the form details gets submitted, whereas, in case of links say,

<html:link action="/cart/addToCart.do"><html:img src="/icons/KWcontinue.gif" border="0"/></html:link>

so, in my page, with an image of "KWcontinue.gif" only, i could navigate to next page. and here, i culd specify the action to take but the form details are not getting submitted (means, not calling setter methods of form-bean). i don't want to use buttons here........

how shld i go abt it....Lacar
15 years ago
thanks for the information on "attribute" and "name". And, i knew that when an action gets submitted, setter methods of form bean gets called corresponding to the controls used in the form, but when my page loads with list of records each containing a checkbox (implemented, using multibox) calls getter methods but when an action submits in the page, it doesn't. This is not only for multibox but also for a textbox(which, i used it for testing).

so, what could be the pblm?

thanks.
15 years ago
hi all,

when should we have to go for attribute property in action tag of action-mapping. what makes difference in using either attribute or name property? bcoz, in struts-config.xml of struts-example application, to associate a form-bean to an action, they used like,



Also, how and when the getter and setter methods gets called? bcoz, the multiboxes used in my appln, does not gets updated. So, is the attribute property necessary, inorder to call setter methods to update the form bean and name property needed to simply read the form bean?

hope, 'm clear.....thanks.
15 years ago
thanks joe. but which release of MS VM supports the latest release of java. currently i'm using Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810, is this the latest?

bye bye
Akshay.
16 years ago
hi,

Basically, my applet program creates instances of some other panels(each of them are individual classes) to use them as different pages in it.

And, now, i'm using IE6.0 with java plug-in for sun's jre support. when i run my applet program with sun's jre or appletviewer, it runs properly not even with single exception. but the same applet when i disable sun's jre option in IE's Tools >Internet Options >Advanced, and enabling all options under Microsoft VM, it throws an exception as below:

Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810
==============================================
java.lang.NoSuchMethodError: java/awt/GridBagConstraints: method <init>(IIIIDDIILjava/awt/Insets;II)V not found
at MainStreamPanel.jbInit
at MainStreamPanel.<init>
at BaseApplet.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run

So, just to clear this exception, i removed the gridlayout being used and then i execute with MS VM alone, it throws a new exception at LinkedList in some other file.

hope i'm clear with the explanation. culd anyone put their efforts in resolving it. thanks.

Akshay.
16 years ago
thank u ben. let the text be there. but how to change the background color of that bottomline text. also, since 'm using JOptionPane.showMessageDialog(), how'll i change the background color of it.
16 years ago
hi ben,

culd u plz illuminate more on signing the applet and related to it.

thanks.

Akshay.
16 years ago