JBOSS JMS access over internet
by V Sriram
Hi,
I have a JMS publish/subscribe program that is running fine over the LAN.
But when I switch to the internet, the Publisher is able to send the
messages but the receiver is not receiving anything.
Initially the receiver gave a Communication Exception. But when the
Subscriber is run after opened the following ports, I did not receive any
Communication Exception.
8080
8443
8009
8083
1099
1098
I am running JBOSS 4.0.4a. Are there any changes that need to be done in
JBOSS configuration for the Subscribe to receive the messages over the
internet?
Has anyone faced this problem before?
Regards,
Sriram
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
17 years, 9 months
[JCA/JBoss] - Using custom security domain to use encrypted password
by priyankalavti
Hi Everybody,
My Requirement:
1. remove the usage of cleartext password from mysql-ds.xml
2. Use the custom password manager to retrieve the password
Given Solution by extending the SecureIdentityLoginModule:
JBoss connector APIâÂÂs provides SecureIdentityLoginModule to encrypt database passwords rather than using clear text passwords in the datasource configuration. I have extended this class and overridden the commit method, which will call password manager to retrieve the password.
Problem:
By going thru the custom login module, JBoss JCA takes ~25 milliseconds to return the connection. And this 25 milliseconds doesn't count the time to call password manager. But if I don't use cleartext password, it takes hardly 1 millisecond.
I want to understand:
1. what is done by JCA when login module is used which takes ~25 milliseconds.
2. Is there any way I can configure JBoss JCA to verify the password only for the 1st time, and for the subsequent calls, it just returns the connection in ~1 milliseconds.
Thanks in advance,
Priyanka
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166552#4166552
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166552
17 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - an interesting Hibernate / JPA Composite Key Question
by cfrostrun
I was wondering if anybody had a good way to solve this... I have it semi-working, but the join columns are read only? is there anyway to get the join columns insertable/updateable?
Say I have 3 tables called TableA, TableB, TableC
Table A & Table B are basic 3 column composite primary key... Say id, globalId, and globalProfile.
table a(
id int not null,
global_id int not null,
global_profile varchar(50)
)
table b(
id int not null,
global_id int not null,
global_profile varchar(50)
)
TableC also has a 3 column composite primary key id, globalId, and globalProfile, however there's also foreign keys to table A & table B which reuse 2 of the 3 columns in the primary key for the foreign key to each table.
table c(
id int not null,
table_a_id int not null,
table_b_id int not null,
global_id int not null,
global_profile varchar(50)
)
so table c(table_a_id, global_id, global_profile) maps to table a(id, global_id, global_profile)
so table c(table_b_id, global_id, global_profile) maps to table b(id, global_id, global_profile)
I'm using....
@ManyToOne
@JoinColumns({
@JoinColumn(name="table_a_id", referencedColumnName="id",insertable=false, updatable=false),
@JoinColumn(name="global_id", referencedColumnName="global_id", insertable=false, updatable=false),
@JoinColumn(name="global_profile", referencedColumnName="global_profile", insertable=false, updatable=false)
})
@ManyToOne
@JoinColumns({
@JoinColumn(name="table_b_id", referencedColumnName="id", insertable=false, updatable=false),
@JoinColumn(name="global_id", referencedColumnName="global_id", insertable=false, updatable=false),
@JoinColumn(name="global_profile", referencedColumnName="global_profile", insertable=false, updatable=false)
})
So anybody have any good ways to create mutable data... if i remove the insertable/updatable i get an exception about mixing modes. if i remove it across all elements i get sorry can't repeat columns in definition or something...
I understand this is a highly abnormal configuration, but the application requirements require this type of configuration since it's highly distributed data, that's also synchronizable across to a central location, and it needs to be able to co-exist.
so anybody have any ideas on how best to make it have a mutable configuration settings? The other option is leave it read only .. . then anytime i need to mutate it just do that in straight jdbc??
Thanks for the ideas...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166550#4166550
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166550
17 years, 9 months