sridhar | 8 Dec 19:32

Problem to Getting ISORequest from Transaction Context in Txn Manager for Some Transactions

Hi,
We have faced problem for Transaction Context .

We have sent multiple json requests  by the help of Apache Jakarta JMeter.

we have used Apache Jakarta  JMeter , through which at a time we can sent 
Multiple  Transactions from Multipl Users.

Our Rest JSON Web Service sent the requests to Q2 Server by converting json
to ISOMsg and also received the ISOMsg and sent to Jakrata JMeter by
converting   ISOMsg to JSON.

In this process, we successfully done the transaction end to end from VT to
Gateway through Web Services.

But we have faced the problems when multiple users at a time hit the
requests to Q2 Server.

We have gone through Following steps to handle the Transactions in Q2
Server.
1.Q2 Server received the requests by ISOMsg Request Listener.
2.ISOMsg Request Listener put the ISO Request and ISO Source in Context.
3.we put the Context into Transaction Manager Acquirer Space.
4.All the Transaction Participants under the Acquirer Transaction Manager
acessed the Context by extending Transaction Participant.
5.In this Process we have handled the Transactions.

But When We hit  multiple transactions and we acessed the IsoRequest in
Transaction Participant by getting it from Transaction Context,
it is returning null for some Transactions.
(Continue reading)

Mark Salter | 8 Dec 20:11

Re: Problem to Getting ISORequest from Transaction Context in Txn Manager for Some Transactions

On 08/12/2011 18:32, sridhar wrote:
>  
> 
> Hi,
> We have faced problem for Transaction Context .
I see you have posted this same question to the jpos-users group, which
is the correct place, answers there please :-)

--

-- 
Mark

------------------------------------

Sebastián | 10 Dec 00:14
Picon

ISOUtil.isNumeric

Hello people!, I have a small question about this handy method on ISOUtil
class:

/**
* Return true if the string represent a number
* in the specified radix.
* <br><br>
**/
public static boolean isNumeric ( String s, int radix ) {
int i = 0, len = s.length();
while ( i < len && Character.digit( s.charAt( i ), radix ) > -1 ){
i++;
}
return ( i >= len );
}

My question is if I pass the empty String this method returns true, even
though "" doesn't represent a number. Yet when checking the tests cases I
saw that you specifically check this case and expect the method to return
true when checking the empty string. ¿What am I missing here?¿Maybe ""
should map to 0?.

Thanks!

[Non-text portions of this message have been removed]

------------------------------------

Mark Salter | 10 Dec 00:35

Re: ISOUtil.isNumeric

On 09/12/2011 23:14, Sebastián wrote:

> My question is if I pass the empty String this method returns true, even
> though "" doesn't represent a number. Yet when checking the tests cases I
> saw that you specifically check this case and expect the method to return
> true when checking the empty string. ¿What am I missing here?¿Maybe ""
> should map to 0?.
I can't think of a good reason, although I agree that the test hints at
there being one - I guess a null String has to be considered numeric or not.

May I suggest that this question might be best asked on the jpos-users list?

--

-- 
Mark

------------------------------------

leoking | 15 Dec 14:51
Favicon

Q2 Deployed Twice

Hi 

When Java Heap Space memory exception occurs. Q2 was auto deployed but twice
and i am using portno in one of the *.xml . It shows JVM_Bind Exception .
Can any one give suggestion on this. 

Regards
leo

--
View this message in context: http://jpos.1045706.n5.nabble.com/Q2-Deployed-Twice-tp5077535p5077535.html
Sent from the jPOS - Dev mailing list archive at Nabble.com.

------------------------------------

Mark Salter | 16 Dec 01:27

Re: Q2 Deployed Twice

On 15/12/2011 13:51, leoking wrote:

> When Java Heap Space memory exception occurs. Q2 was auto deployed but twice
> and i am using portno in one of the *.xml . It shows JVM_Bind Exception .
> Can any one give suggestion on this.
> 
If you have two deployments active, then each will try and use the same
deployed files and the second one to reach your server configuration
will get a bind error as the port is already in use.

Please may I ask you take this question to jPOS-users:-

   http://groups.google.com/group/jpos-users

If you fix your 'auto deployment' so that only one Q2 is ever active,
your problem will be gone?

--

-- 
Mark

------------------------------------


Gmane