Massimo Pascale

Greenhorn
+ Follow
since Jun 29, 2001
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 Massimo Pascale

Excuse me but for the Publisher?
How can I avoid that it publishes on my Topic?
If you can help me
22 years ago
I' m using j2ee, and I'm building an application
that lookup TopicConnectionFactory and Topic from a Context
without authentication.
But I would want cofigure J2ee or Jms (?) to give permissions
to only I want.
I have seen that there is a file named auth.properties
in which probably I must to change something
but I don' t know what.
This is the file :
realms=default,certificate
realm.default=config/realms/default.properties
realm.certificate=config/realms/certificate.properties
default.principal.name=guest
default.principal.password=guest123
anyone.role.name=Prova.java
audit=false
If you can help me, thanks
22 years ago
I' m using j2ee, and I'm building an application
that lookup TopicConnectionFactory and Topic from a Context
without authentication.
But I would want cofigure J2ee or Jms (?) to give permissions
to only I want.
I have seen that there is a file named auth.properties
in which probably I must to change something
but I don' t know what.
This is the file :
realms=default,certificate
realm.default=config/realms/default.properties
realm.certificate=config/realms/certificate.properties
default.principal.name=guest
default.principal.password=guest123
anyone.role.name=Prova.java
audit=false
If you can help me, thanks
I' m using j2ee, and I'm building an application
that lookup TopicConnectionFactory and Topic from a Context
without authentication.
But I would want cofigure J2ee or Jms (?) to give permissions
to only I want.
I have seen that there is a file named auth.properties
in which probably I must to change something
but I don' t know what.
This is the file :
realms=default,certificate
realm.default=config/realms/default.properties
realm.certificate=config/realms/certificate.properties
default.principal.name=guest
default.principal.password=guest123
anyone.role.name=Prova.java
audit=false
If you can help me, thanks
22 years ago
Hello,
I would like to permit connection to my JMS service only to authenticated users.
I know that there is a method
TopicConnectionFactory.createTopicConnection(username, password);
that allow the user to create TopicConnection only if he has a username and password.
But where do I must to store those credentials?
I' m using J2ee.
Help me.
Thank you.
I' m using J2ee and I created a Durable Subscriber.
The problem is that if I run the publisher two times, the subscriber subscribes all the message the first time and if i run it another time it subscriber the latest message published by the publisher.

I hope that someone will understand and help me.

Ciao ciao
First of all ecuse me for my English.
This is my problem :
I would want to create a TopicConnectionFactory on a server LDAP using JNDI API but I have an Exception as :
LDAP: error code 32 - No such Object
this is th code :
Hashtable env = new Hashtable();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.ldapCtxFactory");
env.put(avax.naming.Context.PROVIDER_URL, "ldap://localhost:389");
DirContext ldp = new InitialDirContext(env);
Context jndiContext = new InitialContext();
TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
ldp.bind("TopicConnectionFactory", topicConnectionFactory); //**********HERE IS THE EXCEPTION

I hope that someone can help me.
Ciao ciao.
22 years ago
First of all ecuse me for my English.
This is my problem :
I would want to create a TopicConnectionFactory on a server LDAP using JNDI API but I have an Exception as :
LDAP: error code 32 - No such Object
this is th code :
Hashtable env = new Hashtable();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.ldapCtxFactory");
env.put(avax.naming.Context.PROVIDER_URL, "ldap://localhost:389");
DirContext ldp = new InitialDirContext(env);
Context jndiContext = new InitialContext();
TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
ldp.bind("TopicConnectionFactory", topicConnectionFactory); //**********HERE IS THE EXCEPTION

I hope that someone can help me.
Ciao ciao.
22 years ago