Johan Apelgren

Greenhorn
+ Follow
since Jan 24, 2002
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 Johan Apelgren

Beats me, but that's the response I get. Probably HTTP and FTP are regarded as more common "internet-hacker" protocols than IIOP.
Anyway, as it has turned out, the solution will be to move the servers to the same network. I will now be able to use a simple FileOutputStream object instead...
//Johan
21 years ago
Unfortunately HTTP is out of the question due to security restrictions since the S1 and S2 remains on two different networks, one more restricted than the other.
//Johan
21 years ago
Hi!
From an EJB in WebSphere on server S1 I need to create a XML string and save this string as a file on another server S2. On S2, a COM component in Microsoft Transaction Server will use it. I'm not allowed to use FTP for this operation due to security restrictions. Instead I plan to use IIOP (an authorized protocol). Unfortunately I'm a rookie when it comes to IIOP, so that's why I have a few questions:
1) What is needed on server S2 to get the conversation working. Some kind of "IIOP server"?
2) Security question: Does this conversation require the client (S1) to authenticate itself to S2?
3) How do I actually create the file? In the application that handles the conversation on S2? Can this be a "normal" Java application?
4) Are there any limitations regarding how big these XML-strings can be in a single operation?
//Johan
21 years ago
Thank's!
This sounds like a well designed solution. I have two comments:
1) You wrote:

"spin off a thread that takes care of the time consuming operation and pass that thread the user's session (and therefore the result object0 to store the result in."
Is this a safe operation to perform within a J2EE application server and/or a web server? I thought threading was one of the things the appserver ought to handle automatically?
2) You also wrote:
"a possible solution is to provide a template in each page that displays the state of any outstanding work belonging to the user by checking the session for the result object and checking its state. If no result object exists then nothing is shown, otherwise its state is shown together with a link to a page that can extract the result object from session and display the result"
Our application is a "fat" web client. That is, it is implemented with payloads of DIV tags and Javascripting, and only access the web server when it's time for bulk operations (+10 secs) that I mentioned in my previous posting.
I mention this because I think this template solution would work just fine if the application make a HTTP request to the web server every time the user "clicks" in the GUI. But for us the "template" would have to check the session in a hidden form or something. Could this be done?
Are there better alternatives, since I have got the impression that hidden forms are "dirty" design?
21 years ago
Hi!
In my application the user will have to wait for the server to execute requests that sometimes will take more than 10 secs to perform. During this time, I would like the users to be able to continue with certain non-sensitive operations. When to request is done, the web application should somehow notify the user and present the result to her/him.
Has anybody a good implementation of this feature?
PS. We use WebSphere 3.5 and IBM HTTP Server.
//Johan
21 years ago
Hi!
In our application we're using CMP beans with inheritance. We develop in VAJ 3.5 and deploy to WAS 3.5.5. Our DBMS is DB2 for OS/390.
When we try to create an instance of one of the leaf CMP beans we encounter some really strange behavior (at least in some cases, described in detail below):
1) If we perform the operation right after WAS has been started, DB2 throws an exception saying that it's not possible to insert NULL into a not NULL column, even though our traces show that a proper value is propagated to the bean.
2) If we create another CMP bean first, and then try to create the "strange bean", everything works fine, except for the fact that the value inserted in the column DB2 complained about (described above) is always the same value as for the object we inserted just before this one!!
3) Our traces show some differences between ejbCreate in our normal, fine working beans and the strange bean. our code looks just the same:
In the Super Bean:
public void ejbCreate(IntressentEVO evo){
_initLinks();

// All CMP fields should be initialized here.
Trace.info(this,"create", "Entering Intressent.ejbCreate");
this.intressentnr = evo.getIntressentnr();
this.andradHandl = evo.getAndradHandl();
//... more code...
Trace.info(this,"create", "Leaving Intressent.ejbCreate");
}
And in the strange bean:
public void ejbCreate(FysiskPersonEVO evo) throws javax.ejb.CreateException, java.rmi.RemoteException {
Trace.info(this,"create", "FysiskPerson create before super.ejbCreate");

super.ejbCreate(evo);
Trace.info(this,"create", "FysiskPerson create Entity bean after super.ejbCreate");
this.datumFulltArbetsfor = evo.getDatumFulltArbetsfor();
this.datumDodsfall = evo.getDatumDodsfall();
Trace.info(this,"create", "Leaving FysiskPerson.ejbCreate");
}
The We have also put traces in the generated EJSJDBCPersisterXXX classes.
The normal trace (in another bean called EnskildFirma) when creating an instance looks like this:
"Enskild Firma create before super.ejbCreate"
"Entering Intressent.ejbCreate"
"Leaving Intressent.ejbCreate"
"EnskildFirma create Entity bean after super.ejbCreate"
"Leaving FysiskPerson.ejbCreate"
"EJSJDBCPersistenceEnskildFirma..."
But when invoking ejbCfreate in FysiskPersonBean, it looks like this:
"Entering Intressent.ejbCreate"
"Leaving Intressent.ejbCreate"
"EJSJDBCPersistenceFysiskPerson..."

4) At last but not least. This behavior only appears in WAS. When we test this locally in WTE in VAJ everything works fine, traces looks fine and proper objects are created in DB2.
And yes, we have verified (a couple of times) that it is the same code in VAJ and WAS.
I don't expect that anyone has encountered exatly the same problems as we, but anything that could lead to some clues of what is wrong would be appreciated.
//Johan
21 years ago