Kartik Mahadevan

Ranch Hand
+ Follow
since Feb 16, 2005
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kartik Mahadevan

Thanks for suggesting the Oracle Process Manager

I am thinking of using a JBPM which would help me manage my workflows but when it comes to the UI I am a bit flumoxed
My Use case :
1.) My XYZ client needs a module called Bills Validation
2.) Based on my requirements gathering, this module should have around 3 forms which can be filled in a particular sequence.
3.) 1’st form has a interface whereby we have to give around 10 fields. A few of these fields could be drop downs, text boxes etc. There are certain fields for which could also have some rules like the only possible
Values could be A,B,C in the dropdown. Certain fields can also have some rules attached to them.
Similarly the 2’nd and the 3’rd form could also have its own structure.
Also once the user enters the data in all these forms, he can persist this data which could be saved in the database in some structure, which could be used in later for some other modules like reports etc etc.
4.) As I see it, I am considering anything in the page like a component be it a module, a form, a element inside a form etc arranged in a tree structure and I have to build an engine which can translate this tree structure into a html page and display
5.) My challenge is that I am unable to comprehend as to where do I really start with this component design arcitecture. I need some ecent design both at the front end and also at the backend to persist all this form data



4 years ago
Hi Guys

Not sure about whether I am posting in the right place but I am searching for an architecture whereby I want to make an application which I could customize
for different customers. Every customer could be having his own workflow and every workflow would be having a couple of forms, modules etc
I want to create a module which can churn out these entities like modules, forms, form elements like text boxes etc. This would be done once for a customer when I would be setting up the application for a customer
when I create these forms etc, I also should be able to persist these forms data to the database.

I am trying to read about the different architectures which I could use here. Guys any suggestions ?

Regards
Kartik
4 years ago
Hi

I also have the same question. where have you moved it to?

regards
Krtik
5 years ago
Hi guys

I am doing one application with a lot of screens. As I have been doing till now I have each and every screen as a seperate function in a midlet but for improving the object orientedness I am planning to go in for seperate classes for every screen and a seperate controller class in the centre . Now will the creation of these extra classes be a concern in the normal J2ME scenarios ??

Also is there any other good design availaible for handling such scenarios where you need flow control across multiple screens???

Regards
M.Kartik
10 years ago
Hi all

Thanks for replying .
The reason i am trying to do this is :-

I need to showcase to my team as to how to communicate between two devices so I thought I will write a midlet and run it twice . On running the same midlet twice in wtk 2.5 I get 2 different emulators running . Now I can use the emulators to work as two seperate mobile phones.

The problem I am facing is :-
Since bot the emulators are running in the same jvm so I came across a case scenario whereby a single database recordstore is shared among all these midlet instances(same record store for all the emulators) but in reality when I create these midlet instances afresh they don't go for the existing record store but create a new record store.

Kindly help me solve these issues.

Regards
M.Kartik
10 years ago
Hi

You have redirected me to the Sun forum where I had asked the same question but did not get any reply. Could you please help me out with this issue.

Regards
M.Kartik
10 years ago
Hi all

I tried executing the following code for maintaining a record store. The issue I am facing is that the first time when I run this code the record store is created and data is inserted in it.

package temp;


import javax.microedition.midlet.*;
import javax.microedition.rms.*;

public class recordstore extends MIDlet {

public recordstore() {
}
public void startApp() throws MIDletStateChangeException {
String s="";
RecordStore rs=null;
System.out.println(s);
try {

rs = RecordStore.openRecordStore("file6",true);
String temp="This is for phone number 5550001";
rs.addRecord(temp.getBytes(), 0,temp.getBytes().length);
System.out.println("record store file1 is opened and the record count is-->"+rs.getNumRecords());
}catch(Exception e){
System.out.println("Error: "+e.getMessage());
}
finally{
//close the record store
try {
rs.closeRecordStore();
System.out.println("record store file6 is closed");
}catch (Exception e){
System.out.println("Error: "+e.getMessage());
}
}
destroyApp(true);
notifyDestroyed();
}

/**
* Pause the MIDlet
*/
public void pauseApp() {
}

/**
* Called by the framework before the application is unloaded
*/
public void destroyApp(boolean unconditional) {
}
}


but the second time when I try using this code with the open record store set to false ( the record store should have been returned) I am getting a record store not found exception.

package temp;


import javax.microedition.midlet.*;
import javax.microedition.rms.*;

public class recordstore extends MIDlet {

public recordstore() {
}
public void startApp() throws MIDletStateChangeException {
String s="";
RecordStore rs=null;
System.out.println(s);
try {

rs = RecordStore.openRecordStore("file6",false);
String temp="This is for phone number 5550001";
rs.addRecord(temp.getBytes(), 0,temp.getBytes().length);
System.out.println("record store file1 is opened and the record count is-->"+rs.getNumRecords());
}catch(Exception e){
System.out.println("Error: "+e.getMessage());
}
finally{
//close the record store
try {
rs.closeRecordStore();
System.out.println("record store file6 is closed");
}catch (Exception e){
System.out.println("Error: "+e.getMessage());
}
}
destroyApp(true);
notifyDestroyed();
}

/**
* Pause the MIDlet
*/
public void pauseApp() {
}

/**
* Called by the framework before the application is unloaded
*/
public void destroyApp(boolean unconditional) {
}
}


Please help me out solve this issue.


Regards
Kartik
10 years ago
I have three seperate Excel reports A,B and C. The Excel sheet A can have n number of pages in it but the Excel report B and C will always have only one sheet each.
I wanna copy these sheets B and C into the A report as seperate pages.
In the sense the A report would be the first page ,the next page would be B and the next page would be C.
something like A= A+B+C .All this has to be done through jxl.
Is it possible??If so what approach should I take?
While deployig application I am getting the error
"Unable to deploy EJB from name.jar where name is some jar file
weblogic.j2ee.validation.ComplianceException:: In relationship
'BANKER-cmp20-REPORTS-cmp20', role 'REPORTS-cmp20-has-BANKER-cmp20', the foreign key columns used to implement a cmr-field may not be a mix of primary key columns and non-primary key columns."
Here both Banker and Reports are beans.Also I am currently trying to migrate my code to weblogic 9.1.Is that a problem?
I need to access my client server but it is using this t3 protocol behind which it authenticates the user id and password.I have that user id and password but do not know how to use this ProxyAuthenticator interface to tunnel through this t3 protocol above the http protocol.
I created the getLoginAndPassword() and init() method's which are necessary for this interface.
Could somebody please help me?
12 years ago
Hi
I have a situation where I am having 4 drop down boxes one below the other
The first two are text boxes(simple text boxes).The next two boxes are drop down boxes getting the values from database .I want the last two boxes to be of the same length like the first 2 text boxes but what is happening is that the size of the drop down boxes automatically adjusts according to the largest value.How should I fix it?
Hi

I assume that initially at the start of the servlet the container passes Servlet Config object into init() method.So we start using this servlet config whenever we want but no servlet context is provided by the container although servlet config contains a refrence to servlet context but how does the servlet context come into being .How come we have a method like getservletcontext() when servletcontext is not being passed to the servlet? Is theservletcontext internally added to the servletusing
getservletconfig().getservletcontext()ie whenever I call getservletcontext() is it internally calling getservletconfig().getservletcontext()?

Thanks and regards
M.Kartik
12 years ago
Hi

Could someone please help me with finding some clustering resources.I also wanted to know whether clustering is possible in Weblogic 7.0 and if not what should I do to implement clustering ?
Should I get some service pack?
and what sort of hardware ie RAM my system should have?
Also please let me know of some internet resources regarding clustering with Weblogic.

Thanks
Regards
M.Kartik
12 years ago
Sir
Could someone plz give me the answer to the problem.In this example When is the class being loaded?Is it loaded when we use Java command or is it being loaded after the refrence to the variable Dog is being made? or is it being loaded at both these times (during java Dog and Dog d ;which means that static block would be executed twice.Also if I have a statement Dog d is the class dog being loaded?
Thanks
12 years ago
Sir
I think

Dog
Starting main()
Dog
Another Dog
Ending main()

can also be an answer bcos during the first class loading static{ }
will get executed
next first S.O.P{"starting main()") will get executed
next staic will again executed bcos creating Dog d amounts to loading the class again.next another dog will get executed after the formation of dog object.
Next Ending main() will get executed.

Please correct me if I am wrong.

Thanks
Kartik
12 years ago