Harsha Jay

Greenhorn
+ Follow
since Sep 25, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Harsha Jay

1.)I access an EJB on remote host using IC/user/pass... works fine
2.)I access local EJB, and when I try to get the logged in user using ejbcontext, I get the user I previously used to connect to remote host.

Anybody, face this problem... any insight appreciated.. please ask me addl' questions if you did not get the problem -tks
16 years ago
Alright I fixed the problem...

1.) I used the EJB 3.0 MDB as message driven bean with all the works and provide only two required annotations (destinationtype and destination)

2.) WE CANNOT PASS VALUES TO THE ANNOTATIONs (SHAME!!!)

3.) So I used the ejb-jar.xml to define additional properties for the user/password so that the values can adjusted by the systems groups to deploy to their tiers.

LIFE IS GOOD!

Happy Thanksgiving!
16 years ago
in the prev ejb 2.x the activation config property took the user name password, if I use annotations to set the activationproperty

like this @ActivationConfigProperty(propertyName = "user", propertyValue = "subscriber"),

how can parameterize this value?

I tried doing this see the attribute properties to pass in username and password, but it simply ignores this , why?



<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.mq:service=JMSProviderLoader,name=JMSProvider">
<attribute name="ProviderName">d2</attribute>
<attribute name="ProviderAdapterClass">
org.jboss.jms.jndi.JNDIProviderAdapter
</attribute>
<!-- The combined connection factory -->
<attribute name="FactoryRef">SomeConnectionFactory</attribute>
<!-- The queue connection factory -->
<attribute name="QueueFactoryRef">SomeConnectionFactory</attribute>
<!-- The topic factory -->
<attribute name="TopicFactoryRef">SomeConnectionFactory</attribute>
<!-- Uncomment to use HAJNDI to access JMS -->
<attribute name="Properties">
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
java.naming.provider.url=localhost:11099
java.naming.security.principal=user
java.naming.security.credentials=pass
</attribute>
[ November 24, 2008: Message edited by: Harsha Jay ]
16 years ago
Our tech stack dictates IE 7.0 I'm covered. I love firefox though.
Alright got it to work.

I was getting this list from enums.. so, i had to bind it in the JSP.

time well spent!
For the snippet below
<select id="something" name="something">
<option value="1">This is option 1</option>
<option value="2">This is option 2</option>
<option value="3">This is option 3</option>
<option value="4">This is option 4</option>
<option value="5">This is option 5</option>
</select>

can I iterate over the <option> elements and is it possible to add 'title' attribute? I am doing this so that I can get tooltips to show up.

Or

Is there a easier way of achieving the tooltip display?

much appreciated!
H
Can I use javascript in the requestURI attribute?

usually we point it to a action, i am trying to call a javascript. Is this doable?

-Harsh
16 years ago

[ November 13, 2002: Message edited by: Harsha Jayan ]
Hi Neha :
What is happening here is the Anonymous inner class is implementing the interface ITest providing the implementation for the method setval().
This is a good example of anonymous class.
Later
1. public Object method(){
2. float f = 1.23f;
3. float o = f;
4. f = null;
5. o = null;
6. return 0;
7. }
So in that case ,if i modify the code as shown above will it still be after line 5 or line 4.
I am planning to take exam in a months time and these kind of things are putting me off.
Can we expect these kinds of questions.
How would you go abt solving this problem ?Do u write the binary representation or is there a easy approach?

Q 1 y=-99
find y>>>12
ans=1048575

Thanks