Kavya Anjali

Ranch Hand
+ Follow
since Mar 23, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kavya Anjali

Yes sir...even I am confused as to what can be done in this regards. Are there any alternatives with regards to the length of a datatype. If it cannot be expressed in the DTD where else can we put that requirement?
I am facing one problem in XML.I need your help.

I need to validate the XML with DTD ,where in DTD I would like to
specify the length of the datatype .

Is there any way by which Length of the datatype (ie.,the precision )
could be specified in DTD for each of the elements and thus be validated
against the XML?

Please help me in this regard.
Thanks for the reply..will try out the suggestions...
18 years ago
We are looking for role based authorization by using JAAS API. Roles data is available in database (oracle DB), how can we implement the JAAS authorization custom module by interacting with external DB, not the policy file and LDAP data store.

Are there good articles for JAAS API usage? If so please post them as well.

Please help on this issue.
18 years ago
I am sorry for the late response but I promise to be more regular about this.
I was away for some presonal work and so couldnt look at this issue afterwards.

Yes the problem was solved with the bouncy castle solution. But you all are also right in that the JDK version was 1.4.1 and not 1.4.2

Thanks for all the suggestions
18 years ago
Thanks for the reply..I will look into that...
18 years ago
At present we are using SHA1 ( Secure Hash Algorithm ) for Message digest and JDK Version 1.4.1. But we get one new requirement for Message Digest that instead of using the SHA1 we need to use the SHA256 Algorithm.

we call the Message Digest Class which is in rt.jar by passing the required parameter like,

current one :

MessageDigest digest = MessageDigest.getInstance("SHA-1");

which is working fine.

Required One :

MessageDigest digest = MessageDigest.getInstance("SHA256");

or

MessageDigest digest = MessageDigest.getInstance("SHA-256);

We tried with the JDK version 1.4.1 , 1.4.2 , 1.5 but it throw the exception like,

java.security.NoSuchAlgorithmException: SHA256 MessageDigest not available

We need to implement this Message Digest by using SHA256 Algorithm, Could you please suggest some idea or procedure or any step we need to follow for this.
18 years ago
Thanks for the response. I also would like to add a few things which I got to know from my friend

His quotes :
When you say " the application goes down", I would assume that there's a runtime exception which has occurred in the application (the message consumer/MDB)

I would imagine that the behaviour here is largely dependent on the transaction attributes set for the particular methods. If the bean in question (MDB ) is container managed and has a transaction context, then the EJB container does try to redeliver the message. (the number of retries is as specified in the listener port)

But in case, repeated attempts of delivering the message fail (in our case, this happens when the MDB repeatedly throws a runtime exception), then the message is placed in a dead letter queue (check if your JMS provider provides this facility. I am also told that in MQ Series we can also use Backout Requeue and Backout threshold). Then the messages have to be moved to the input queue from the dead letter queue(upon correction of the error causing the runtime exception in the MDB).

The other option which we could explore is writing the failed message into some sort of a log, from which we can programmatically recover the failed message.

The main point here is, make sure that the process of delivering and receiving the message is covered in a valid transaction context. For e.g., having the MDB's onMessage method running under "NotSupported" transaction attribute does not guarantee redelivery of failed messages!

I hope this helps!
I have the following query on JMS.
I am using MDB (Message Driven Bean) to consume messages.
My question is: Suppose for instance, message #1 has arrived in the queue and the MDB instantiated. Now during the processing of the onMessage method, the application goes down. Meanwhile messages #2, #3, #4 gets queued up.
1. Once the application comes up, will the message #1 be processed again or will message #2 be picked up?
2. Can we control this programatically so that any unprocessed message is processed after any failure,
or
3. Is there some settings that we can do to achieve processing of unprocessed messages?
I need to install Java 1.5 on a Sun-Solaris machine. However I havent worked on Solaris before. Nevertheless, I followed a few steps given on the website.

I have downloaded and installed the JAVA version.

$java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode)

$whence java
/wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5rt/reloc/jdk/instances/jdk1.5.0/jre/bin/java

$whence javac
/wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5dev/reloc/jdk/instances/jdk1.5.0/bin/javac

$echo $LD_LIBRARY_PATH
/wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5rt/reloc/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/dt/lib:/usr/openwin/lib

$cd /wls_domains/hub05/hub05dA/JAVA_1.5/SUNWj5rt/reloc/jdk/instances/jdk1.5.0/jre/lib/sparc
$ls -l libjava.so
-rwxrw-r-- 1 hub05dA hub05d 154884 Oct 12 11:32 libjava.so

But when trying to run javac

$javac -verbose test.java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.


Can you please guide me as to what I need to do so that javac works properly ?
18 years ago
We are facing one issue in the production .

In our application we are generating PDF using FOP. Now this functionality is working fine on the staging server but same is giving problem on the production server.

On the staging/ UAT server PDF is generated fine, but same PDF is generated with question marks (?) in the production.

I am not able to add the pdf files over here. One is generated on the staging server and other is generated on the staging one is containing Question marks.

I will show the relevant parts where there are differences:
ABC, Inc. (Buyer) on UAT but ABC? (Buyer)
It seems to me that the spaces are being converted to ? marks...

Any suggestions on this are welcome
[ November 05, 2006: Message edited by: Bear Bibeault ]
No I have not put them in the faces folder...in fact there is no faces folder...
18 years ago
JSF
Hi Bauke...you are right here as well...the problem is not in the attributes as some people feel but it is something else only...I dont know what...I have not yet been able to find the problem
18 years ago
JSF
Hi All

I have tried to create a simple app in JSF. the first page is shown correctly and I followed all the proper rules for

creating a jsf app. However I am unable to go to the second page when I click on the command button. I am keeping the code

for everybody's reference..please tell me what to do as I am totally frustated by this...

I am using tomcat 5.0 and eclipse ide with no other plugins for JSF.
-----------------------------------------------------------------------
This is the first.jsp file

-----------------------------------------------------------------------
This is a simple second.jsp file

--------------------------
This is the backing bean

---------------------
THis is the faces-config.xml file

------------------------
this is the web.xml file

-------------------------------
I have all the necessary libraries in /WEB-INF/lib folders. To be more specific, I have these jar files in the lib folder
commons-beanutils,collections,digester,el,logging,jsf-api,jsf-impl,jstl,standard

The movement bean is in the /WEB-INF/src folder

Please help!!!
[ October 10, 2006: Message edited by: Bear Bibeault ]
18 years ago
JSF
I am using Castor to bind XML to Java objects. I am using a mapping file.
My XML file consists of a lot of namespaces.
How can i specify these namespaces in the mapping file?

Thanks