Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Sub swamy

Ranch Hand
+ Follow
since Oct 02, 2002
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 Sub swamy

Is there a difference in the way in DataInputStream works in Java 6 and Java 1.4 ?

I have an application that makes a MQ call to fetch data from mainframe. While trying to port this application from WebSphere 6 (JDK 1.4) to WebSphere 7 (Java 6), what i observe is that the MQ call goes through fine, the message is received from mainframe. However, when the message is being parsed the runtime in WebSphere 7 raises an "ArrayIndexOutOfBoundsException". The flow is like

J2EE application (WebSphere 6) -> WebSphere MQ 5 -> Mainframe (IMS) - this flow works fine
J2EE application (WebSphere 7) -> WebSphere MQ 5 -> Mainframe (IMS) - this flow does not work and raises an exception.

There were no changes made to the application apart from having migrated to the new runtime - Java 6.
10 years ago
Is there anything JAX-RPC cannot do that JAX-WS does? Infact i found it very convenient to webservice enable my application using JAX-RPC - RAD provides a good tooling for that.
I have created a JAX-RPC based application consisting of a client and server module through RAD (Rational Application Developer with WAS 6). I deploy the modules separately in RAD and they work fine.

Now, i would like to deploy the server module alone in a remote box - what changes do i need to make? I tried replacing all references of the URL with in the client module - instead of "localhost:<portNumber>" to the remote box name - the request seems to be hitting the server - however, i see a NullPointerException on the server side when i do this. From the server logs i infer that the data being passed on to the server module (service) is null - would appreciate if someone could guide me on this.
11 years ago
Thanks Ernest for your reply

The problem is face is the following. I have a client code that calls a server code. The server code fetches data and passes it on to the client code.

While the data being fetched on the server side is correct, the client receives the object being passed on to it as null. However, when i try passing a String object from the server to the client - i get the value properly.

The object being passed here is a List that in turn contains a Map (non-serializable object). It is the map object that contains the value. While the server code, populates this Map object correctly and passes it on to the client, at the client side, i find this Map object to be null.

The client here is a JAX-RPC client.
11 years ago
How do i serialize an object - that in turn contains non-serializable objects within it. I have a List object that in turn contains a Map object.

I tried converting the List object to byte[] and re-converted the byte[] to List object. The content of the map is returned as null.

Would appreciate if i could get some help on this.
11 years ago
I am new to JAX-RPC. I tried creating a simple Java bean in RAD 7.0, and went through the options to create a JAX-RPC webservice. My method is as below.



This works fine when called from a client, if i do not import any dependent classes. However, when i import a dependent class (Customclass shown above), i get to see the below exception.


[9/12/09 9:59:00:182 IST] 00000026 UserException E WSWS3228E: Error: Exception: WebServicesFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultString: java.lang.NoClassDefFoundError: faultActor: null faultDetail: java.lang.NoClassDefFoundError:*



Packaging - the above method resides in an application(ear) which has all the necessary classes included as jar files within the ear. The above method is invoked from a client - JAX-RPC client.

Would appreciate if someone could guide me on this.
11 years ago
Thanks for the response. Thats what i was trying as a work around.

Guess a readymade API would have really helped here.
11 years ago
Is there anyway to retrieve the session object if we know the sessionId ?

I am trying a customized implementation of single-sign-out - if a user logs out of one application he should be logged out of another application as well. I do retain the sessionId of the parent application. Using this value, i would need to invalidate the existing session. Is there anyway i could do this.
11 years ago
Thanks for the response. I did go through the link - http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Single%20Sign%20On which talks about the Valve concept in Tomcat. I have a clarification in the following section

"..As soon as the user logs out of one web application (for example, by invalidating the corresponding session if form based login is used), the user's sessions in all web applications will be invalidated. Any subsequent attempt to access a protected resource in any application will require the user to authenticate himself or herself again..."

Would the session Id be the same when we move across web applications or would it be a case of one session Id per application ?
Appreciate your response.

I was actually looking at a "customized" approach. Let me make my question specific.

The following was what i had tried. I had two applications with groups and roles appropriately defined. I defined the roles through the
<security-constraint> tag in the web.xml file. Both the applications were working fine independently.

Now, to test SSO concept, i had enabled SSO in RAD 7 (which uses WebSphere test environment). What i wanted was to navigate from a secure page in applicationA to a secure page in applicationB without the user having to authenticate himself again. However, when the user tried to navigate to a secure page in applicationB, he was prompted to enter his userid/password since the <login-config> value was set to FORM. Considering that the user had logged in to applicationA, and SSO was enabled in RAD7 - why is it that the security credentials are not being made available while entering applicationB ?

I would like to implement single sign-on for/between two of my J2EE applications.

I have set up the Custom Registry (Global Security -> Custom ) in my RAD 7.
I have also set up the security aspect in my application - have created security role and protected resources through <security-constraint> tag. I tested and found the FORM based authentication working.

Now, as a part of enabling SSO across applications what would be the next step ? How does the login credential/information get transferred to the other application?

Would appreciate any help in this regard.

I would like to know the implication(s) of using a synchronous receiver in a web application. A receiver that continuously looks for message from the specified queue ? I would like to specifically know if it is going to be a big drag in terms of performance.

The receiver would be some what like this


Are there any useful links regarding Open SAML implementation ? Any standards / guidelines / practices regarding its implementation ?
11 years ago
I am looking at legacy(mainframe) connectivity using JMS - any links / assistance in this regard ? Do we need to have additional adapters installed in the application server or default adapters are sufficient ? We use WebSphere Application Server.

I'd appreciate any help in this regard.
I need to lookup JMS objects - connection factory and topic - located in a remote server (different cell).
I set the InitialContext with properties as shown below



I get an exception when i do a lookup saying "First component in name jms/CF no found."

Do i need to specify the cell information - if so how ? i tried with options such as

cell/<cellName>/nodes/<nodeName>/jms/CF

as well.