Saxena Sajal

+ Follow
since Jan 01, 2013
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saxena Sajal

I am trying to connect to a SQL Server database using JavaKerberos Authentication.
I have performed below steps -
1. Created krb5.conf using VAS tools. krb5 has kdc and realm setting and set up properly.
2. Created a keytab using ktutil .
3. Created a TGT using kinit command and ticket was saved in a ticketcache file.
4. Java Program is using JDBC URL which has integratedSecurity as true and authenticaionScheme as JavaKerberos.
5. While running program i am supplying SQLServerDriver.Conf and krb5.conf .

Here is the link which i am following

While invoking this , i am getting 'integrated authentication failed. clientconnectionid' because of :login failure : all modules ignored.

Please suggest what may be missing in this.
String s1 = "abcd5"

String s2 = "abcd"+"5"

String s3 = "abcd"+s1.length()

system.out.println(s1 == s2)

system.out.println(s2 == s3)

system.out.println(s1 == s3)

answer is true , false , false.

I am not getting why "abcd"+s1.length() is not pointing to same ref as s1 in string constant pool. Please explain this.
6 years ago
What is the purpose of Apache cxf ?

I have been using SOAP over http and Soap over JMS on JAX RPC implementations but i do not understand what is the diffrence between Apache cxf and these services.
Apache cxf also creates same Jax RS and JAX WS services only. Why do we have these many implementations?

Please suggest.
6 years ago
I was trying to create a sample webservice.
I created a ejb project , web project for router module and asaociated this to an ear.
I created a simple stateless session bean and added a method add there.
I deployed this ejb project on server.
Now I am trying to create a websevice from this one. Here are the steps which I did.
1. Right click on ejb. And select create webservice.
2. Given ejb bottom up web swrvice, implementation as jax-rpc. And service peoject and ear project too.
3. Selected binding as http. And gave router projwct as well. when I select next rad wizard for generating wsdl does not how the add method of ejb to create wsdl.
It gives no methods are available.

What may be the reason for this.I am using rad 8 and was 7.
7 years ago
May be I am not able to frame the question properly.sorry abt dat.
7 years ago
What is work manager in websphere and how to use it in java? Any sample programs or easy tutorial will be very helpul.
7 years ago
Thanks for the reply Roger.
I would like to explain a bit more on the scenario.

Say i have a ejb project and a web project as an ear. Along with these two projects i do have a JMSRouter (to support soap over jms) a HTTPRouter(to support soap over http) and a service project too. This service project has the WSDL and the ejb which need to be invoked by the client. All these are in the same EAR.

Soap over Http :-

1. Client requests directly hit my service project's WSDL . Now what is the use of HTTPRouter , What kind of binding it has with the WSDL?

2. Does the request directly hit the WSDL or comes thru a HTTPRouter , If yes where is this information used to be in HTTPRouter?

3. What is the Role of a 'WebService Router Servlet(IBM implementation)' , How does it route ? I see the name of the servlet to be used in HTTPRouter and same in the ed point of wsdl too.

Soap Over JMS :-

1. How JMS Routers are attached with a message processing , say a listener on WAS listens to the message on queue kept by a client.
How this message is hitting the WSDL and from WSDL to ejb , This flow i do not understand.

is it something like client --> wsdl -- > jms router --> ejb

2. what all information of an end point of a soap over jms service has , How does it should look alike.
7 years ago

For a middleware system developed on ejb based jax-rpc service what will be flow for a soap over http call and a soap over jms call.
I am always confused in figuring the entry point..
7 years ago
*week is wsdl.typo mistake
7 years ago

When we create a webservice project ffor soap over jms , a jms router is also created along with this. What is the use of that router? Week uses to be placed at some other place which should be the entry point for a request.

7 years ago

Anayonkar Shivalkar wrote:Hi Sajal,

Welcome to CodeRanch!

The concept is not very difficult to understand: Whenever you start an application with 'java' command (directly or indirectly), then you are starting a JVM.
e.g. you write a simple 'addition' program and if you run it 5 times - it will spawn 5 different processes, and each process is a JVM.

A cluster is set of application server processes. A cluster can be created on single host (which is not preferred) or multiple host (which is preferred).

Coming to server - I'm not clear what do you mean by 'server' - is it physical host, or application server? An application server works with single JVM.

Now, since you can have different configuration for different JVMs, it is logical to execute applications (mostly JSE) across different JVMs.

To summarize:
1 Cluster: 1 or more application server
1 Application server: 1 JVM
1 Java instance: 1 JVM

You can have multiple applications on single application server - in which case, all those apps would run in single JVM instance (and we have to be careful while dealing with singleton objects etc.)

I hope this helps.

Thanks for the reply:).
Can we add mutiple application servers in a single websphere application server console. I have a structure where in a cluster four physical servers exists.
and each physical server has 6 JVMs. Does that mean on one physical server there are 6 application servers and each application server is associated with a JVM?

And this whole configuration can be seen from just one websphere application server console?
7 years ago

Jeanne Boyarsky wrote:That is correct. Connection pooling is for reuse. There are two types of pools. The most common one is a datasource on the application server. For example, Oracle provides a connection pooling datasource for use in WebLogic, WebSphere, etc. The other common one is an open source connection pooling library. A connection pool wouldn't be on the database server because you are trying to reuse connections TO the database server.

I'm not sure what you mean about the factory pattern. The library takes care of this. It tracks the status of each connection. Is it in use? Has it been returned to the pool?

Factory i was trying to mention for factorypattern to obtain a connection object. Is there any maximum limit of connection pool size or it depends on server to server?
In an application how one can decide how much bigger pool of connection will be needed to support that application.
If we configure a maximum pool size for at WebSphere server and the more clients are accessing that application (or more connections are required ) at a time, does it mean no connection object will be obtained at that time?

Hi All,

I have heard so many times some architectures like one cluster have four server then one server has 4 JVMs.
And even people judge which app need to run on which JVM.
What i understand is that an application is hosted on an application server so how only one JVM comes into picture.
What exactly is the relation of JVMs with the server and what is the role of a JVM.

It always makes me confuse, Someone please elaborate this.
7 years ago
Hi All,

In connection pooling a connection is taken from a pool and reused it will not try to create a new connection if pool already has connection.
Where this pool reside and how can we set the limit of a it something to be configured at Application Server or database server.
and if yes how a factory pattern look for a connection?