Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!

Mohan Ganesan

Greenhorn
+ Follow
since Nov 22, 2003
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 Mohan Ganesan

Reason is: Input is from web browser then the transaction reaches weblogic where the japanese character is converting into UTF-8. from web logic the UTF-8 converted japanese character reached websphere Business integration(WBI 4.3 with jdk1.4), then its inserting into Oracle table through insert query.
The issue is, Oracle Apps or fornt end is unable to get this japanese character inserted by WBI. Oracle team asking to insert as it is in Japanese character.

Please let me know for any clarification.

Thanks.
9 years ago
Please help me how I can decode a string which was encoded by UTF-8. My java version is 1.4. Thanks in advance.
9 years ago
Is Weblogic is capable of handling Japanese Character? I am facing some issue while getting a japanese charcter from browser and inserted into Oracle Database. In Browser a I giving Customer name in Japanese charater but while inserting its converted into different encoding.

Basically I need to pass Japanese character as it is to Oracle. Please post you suggestion and let me know for any clarifications.

Thanks.
9 years ago
Hi,
My objective is, through a script In need to connect to sftp server and get some file in to my local without prompting password. How can I write a scripts to connect to sftp without asking/prompting for password (ie) i can provide password in scripts itself? Please let me know your suggestions.

Thanks.
Mohan.
10 years ago
Hi Martijn,

Technology is IBM Websphere Business Integration(WBI 4.3) which is on JDK1.4 version.

Problem: Greek Character from Mainframe system in CP423 encoding format needs to be sent to the target application as it is. But in this case when this Greek character enter into WBI its automatically converted into UTF-8 which need to be encoded into CP423.

I am looking for some classes that can do this encoding. Please let me know if you required any additional information.

Thanks.
we are looking to encode a string in CP423 format to handle greek characters and we are unable to use ICU4J jar to do this. How can i implement this jar to do this. Please provide us some sample code or tell us which method should invoke to do this.

Thanks.
Working on IBM Websphere Business Integration Tool 4.3 (JDK1.4). As part of this Integration, MainFrame system is sending GREEK Character and I need to encode this into CP423 and send it to the target system.

Please Help me to encode this GREEK Character into CP423 using some Java/IBM jars.

Thanks.
10 years ago
Hi,
Please help by giving the subquery for the below queries...

1)select CUSTOMER_ID,source_header_id from WSH.WSH_DELIVERY_DETAILS where SERIAL_NUMBER like 'AAX04140025SA' and source_header_number like '1281003'

say example the above query returns CUSTOMER_ID as "xxxxxx" and Soutce_header_id as "yyyyyy"

2)select account_number from ar.hz_cust_accounts where cust_account_ID like 'xxxxxx'


3)select attribute5 from ONT.OE_ORDER_HEADERS_ALL where header_id=yyyyy


My actual output will be "account_number " from second query and "attribute5" from third query.

I want as a single query which returns "account_number" and "attribute5".

Please help me out...

Thanks,
Mohan
[ September 22, 2005: Message edited by: Mohan Ganesan ]
14 years ago
Hi,
I want to get all the sheet name from a ms-excel file dynamically using java and JDBC connection. I can get the excel values but now i am hard coded the sheet name. Instead of that i have to get the sheet name dynamically by passing the file name or path. Please help me out from this query. Thanks

Mohan
14 years ago
HI Madhav,

Thanks for the interest shown.

What is the concern for me (and perhaps the enduser too) is that the original XML document is getting changed.

Although again its a valid XML but for the layman enduser we would like to preserve the early status of the tags instead of modyfing the original tags.

Size may mislead the enduser to believe that the file got corrupted or something of that sort. For the same reasons size was brought to notice and nothing else.

Important is that we would like to preserve the status of the XML document.

Thanks and regards....


Originally posted by Madhav Lakkapragada:
Tell me about it!

I can totally see your point about the file size being different.
It sure does throw some "applications" into a crash mode.
When we had one such "application requirement" (pun intended),
we had no choice but to treat an XML file as a binary file, which
prevented the OS from modifying the file size. Our "requirement"
was different from what you mentioned, but just wanted to relate
my experience with what you said re file size.

Back to you point, I would like to push-back really hard on why
the file size change matters so much to the user. I would reiterate
that the content hasn't been modified and that is the important
thing. I would like to question why the user is looking at the file
size on the disk rather than the content inside the XML.

I know this may not help, but thats my very poor two cents on the topic.......

- m

[ November 05, 2004: Message edited by: Madhav Lakkapragada ]

Hi guys ,

The XML DOM parser is chewing up empty tags .....

What goes in to XML parser :

<TABLE_C>SHR_CPU</TABLE_C>
<IDENTIFICATION_TXT></IDENTIFICATION_TXT>
<UNIT_DESC></UNIT_DESC>


What comes out:

LOGICAL_TABLE_C>SHR_CPU</LOGICAL_TABLE_C>
<IDENTIFICATION_TXT/>
<UNIT_DESC/>


Although generated XML is valid, but still it is reducing the file size by

removing the end tags and combining the empty tags into one tag. For example,

<IDENTIFICATION_TXT></IDENTIFICATION_TXT> modified to <IDENTIFICATION_TXT/> .

This is what I want to prevent exactly

Which is valid as per XML standard but still it appears to the user that XML
Tool is making changes to the without user intervention.

What I want to do is

keep all tags as specified in the original file and not change anything that is not
modified using the DOM Parser. Can anybody suggest APIs or any other solution that can help me for that matter.

Thanks and regards.
Hi,
I have to put comment for method for large number of files. like...


/**
* Implements the SampleInterface interface. Comparison is based on key.
* @see SampleInterface
*/
public boolean isSameEntity(SampleInterface otherSP)
{}


Is there any tools to do this, so that i same do it simple as much as possible.Please suggest me some tool if u come across.

Thanking You.

Regards,
Mohan
15 years ago
Hi all,
I deployed my ejb in Weblogic 8.1. In my client, i am having the username/role, the welogic server has to check for the username/role and then allow to access that EJB. I got struck here, please help me by giving sample code or some tips...


ejb-jar.xml

<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>SIApp</ejb-name>
<home>com.lawson.ejb.SIHome</home>
<remote>com.lawson.ejb.SI</remote>
<ejb-class>com.lawson.ejb.SIBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<security-role>
<role-name>testrole</role-name>
</security-role>
<method-permission>
<role-name>testrole</role-name>
<method>
<ejb-name>SIApp</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
</assembly-descriptor>
</ejb-jar>


weblogic-ejb-jar.xml

<?xml version="1.0"?>

<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>


<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>SIApp</ejb-name>
<jndi-name>SimpleInterest</jndi-name>
</weblogic-enterprise-bean>
<security-role-assignment>
<role-name>testrole</role-name>
<principal-name>everyone</principal-name>
</security-role-assignment>
</weblogic-ejb-jar>


How can I use these in my Client....?


Thanks and regards
Mohan.G
15 years ago
Hi Everybody,
I have to give security for EJBs, for that I need to use JAAS. But I didn't get any simple sample from net.
security check by using roles such as admin,user etc. depends on this role, the EJBs has to access....

Please send me if u have some samples....

Thanks and Regards,
Mohan.
Hi,
I am now working Cocoon 2.0.4 with IBM websphere
studio 5.0 . I am not able to configure the JSP. If
you worked in this, please help me by giving some tips
and suggestions .I am getting the following error.
In Browser the ERROR is:
Error 500: Server caught unhandled exception from
servlet [Cocoon2]: clearBuffer(): illegal state-->
stream is committed

But int Server Console The ERROR is :
[1/5/04 17:20:02:109 GMT+05:30] 77e34d67 WebGroup E
SRVE0026E: [Servlet Error]-[Cocoon2]:
java.lang.IllegalStateException: clearBuffer():
illegal state--> stream is committed
at
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.clearBuffer(BufferedServletOutputStream.java:470)
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.reset(SRTServletResponse.java:868)
at
com.ibm.ws.webcontainer.servlet.HttpServletResponseProxy.reset(HttpServletResponseProxy.java:152)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1115)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

Help me by giving some tips...
Thanks,
Mohan.G