Pranav Shukla

Ranch Hand
+ Follow
since Oct 05, 2005
Merit badge: grant badges
For More
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 Pranav Shukla

Thanks, Ulf. I will give it a shot.
14 years ago
Hi Ranchers,

Not sure if this question should be posted in Security forum...but I thought it is related to security.

I am developing a web-application which will be deployed at the customer's site on tomcat. The web-app is kind of a product which can be customized and given to multiple customers.

I want to implement licensing in this application so that application works only for a certain period (trial version).

Is there any freely available framework to implement such licensing in java?

Thanks in advance.

Pranav Shukla

14 years ago
Hello,

I am trying to set an attribute on user "admin" on the iPlanet Directory Server using the ldapmodify utility that comes with the server.



The ldapmodify utility doesn't give any confirmation about the status of the operation.

Is there any way to check all attributes which are set on the 'admin' user or 'cn=directory manager' user?

Also it would be great to know if the above mentioned change (done using ldapmodify to the admin user) would be persistent, i.e. preserved even after a server restart.

Any help or pointers would be much appreciated.

Thanks.
16 years ago
I had finally found a solution for this one, just sharing it here.

The application using this code was working earlier but suddenly stopped working after a server restart (was deployed on Weblogic).

The exception java.security.NoSuchAlgorithmException, could not find any provider supporting PBEWithSHAAnd3KeyTripleDES was caused by expired IBM JCE provider jars.

Refer to this link,

IBM JCE Certification expires on May 18, 2006

When the weblogic server was restarted, one of the singleton classes in the application accessed the code for loading a keystore using the password using method and started throwing NoSuchAlgorithm due to the certification expiry of the IBM JCE provider.

The above link provides the download of the IBM JCE provider which has valid certification.

Regards,
17 years ago
Hello Ranchers

I am using the IBMJCE provider in one of the projects. The provider is added to the java.security file using the following entry.



I have also copied the IBMJCEProvider.jar in JAVA_HOME/jre/lib/ext directory. But when I am trying to get a Cipher instance for one of the algorithms in IBMJCE using the following code, I get NoSuchAlgorithmException.



The error obviously indicates that the algorithm was not found in any of the registered providers. But if I try to get a list of all available "Cipher" algorithms using following method of java.security.Security I get the whole list of algorithms implemented by all the registered providers, where I can see all algorithms of IBMJCE provider also.



If I specifically request an algorithm implemented by IBMJCE provider with the following method,



I get the error saying "java.lang.SecurityException: The IBMJCE provider may have been tampered."

I have reached a dead-end because of this problem. Any help will be highly appreciated.

Thanks
17 years ago
Hello,

You can specify the messageSelector while creating your QueueReceiver.

createReceiver

MessageSelector string is a SQL like query language where you specify the filtering criteria.
Refer to this thread Logo

You might have to write to SunCert@thomson.com quoting your prometric Id, exam code, test center id & date of clearing the exam.

Once you provide all these details to SunCert@thomson.com they will mail you your password which you can use to download your logo from SCJP Logo.
Weblogic 8.1 is compliant to J2EE 1.3 specifications. J2EE 1.3 specs include EJB 2.0 specs and not EJB 2.1

So if you want to write EJB 2.1 code better use Weblogic 9.0 server if you are particularly interested in BEA products.

Mastering EJB 3rd Edition by Ed Roman is freely downloadable from TheServerSide.com and is a good material to learn EJB 2.1
Hello

If you are planning to deploy your EJB on weblogic then you need to put weblogic.jar in the classpath while compiling your classes. If you plan to use j2ee RI then use j2ee.jar instead.
Yes.

When you call create on EJBLocalHome of a CMP entity bean, the following things happen.

1. Container picks up any bean instance which is in pooled state.
2. Container invokes ejbCreate(<METHOD_PARAMS> - it should set the persistent properties of the bean instance and provide a valid value of the primary key property.
3. Container actually inserts the record into DB.
4. Container invokes ejbPostCreate(<METHOD_PARAMS>
5. Associates the bean instance to an EJBLocalObject - EJBLocalObject will also get the PrimaryKey of the bean.

Then it returns the reference of the EJBLocalObject to the caller.
I think you are almost there. Just add = while specifying system properties.

Hi Vrunda,

Section 11 : J2EE Patterns from sun's website.

Scroll down to the bottom of the page you will find this...


Given a scenario description with a list of issues, select a pattern that would solve the issues. The list of patterns you must know are: Intercepting Filter, Model-View-Controller, Front Controller, Service Locator, Business Delegate, and Transfer Object.
Match design patterns with statements describing potential benefits that accrue from the use of the pattern, for any of the following patterns: Intercepting Filter, Model-View-Controller, Front Controller, Service Locator, Business Delegate, and Transfer Object.

Hi Sanneel,

Is this a question or a statement. If it is a statement, could you please provide the source of this information.

Otherwise if you are asking this question then... read

SCBCD 1.4 ??
HFEJB covers everything to pass the SCBCD exam. The SCBCD exam doesn't require you to remember all tags in ejb-jar.xml. You are not required to know where the ejb-ql tag fits into ejb-jar.xml, but here is an example - the query tag goes inside the entity tag.



It is not required for the SCBCD but here is the ejb-jar dtd.
If you are just looking for a callback from container, you could use HttpSessionListener and update the DB from session scoped form bean before letting the session expire.