[jboss-user] [Security JAAS/JBoss] - Save LoginContext !
Hi all! I use jboss-4.0.5.GA and EJB 3.0 and I use JAAS with DatabaseLoginModule to authenticate the specify client: LoginContext lc = new LoginContext(userTest, new MyCallbackHandler(username, passwd)); | lc.login(); I want save LoginContext to database. Have any way that I can save LoginContext to each client (ex: client A login, and I save A's LoginContext). But it is not Serializable. My idea is Server will logout client by: lc.logout(); Have some ideas ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105297#4105297 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105297 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - The old question !
Hi all ! I have used jboss-4.0.5.GA and EJB 3.0 And I use DatabaseServerLoginModule to authenticate the specific user. CAN I CONFIGURE JBOSS SERVER TO RECOGNIZE SOME CLIENTS WERE LOGOUT ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102446#4102446 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Error when deploy bean !
Hi all! I use jboss-4.0.5.GA and EJB3.0. Today, when I deploy my bean (entity bean), Jboss server give some error same as: ... | Caused by: java.sql.SQLException: General error message from server: Can't create/write to file 'C:\WINDOWS\TEMP\#sql_758_0.MYI' (Errcode: 13) | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2001) | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1168) | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1279) | at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2278) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2225) | at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163) | at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:857) | . Three days ago, all things are ok! have some ideas about it! Thank, catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101676#4101676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Get the path of JBoss server by API !
Hi all ! To get the path of Java home. I write: String path = System.getProperty(java.home); And to get the path of Jboss server, I try: String path = System.getProperty(jboss.home); But the result is Null. How I can get the path of JBoss home by Java API ? Please guide to me. Thanks. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099721#4099721 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099721 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Get some informations from Container !
No some ideas for my problem! When the client connect to server, can I get IP's client ? If the client app is web app is easy! But my client is standard alone. have some ideas ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099083#4099083 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: Trying to get active users..
I also have same problem. But I no some replies! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099084#4099084 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Get some informations from Container !
I have seen some questions about this problem but no any answers. I use JAAS and DatabaseServerLoginModule to authenticate clients. When the client login success. And suddenly, he can't connect to server (maybe is network or some reasons!). How server recognize he not online! (such as how I can get the list of clients have connected to server!) Has the Jboss server support about this problem. I also tried get this list from Container server but not success! Have any ideas about this problem! Thanks. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4098630#4098630 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Get some informations from Container !
Hi everyone! I have used jboss-4.0.5.GA and EJB3.0. My client is standard alone. I use DatabaseLoginModule to authenticate a particular client. When multi clients login success, I can get some informations as username and role from container. Subject subject = (Subject) PolicyContext.getContext(javax.security.auth.Subject.container); My problem is: How I can get a list of clients currently connect to server? Have some ideas about my problem ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4098095#4098095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss for Linux !
Thank you very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096358#4096358 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096358 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - JBoss for Linux !
Hi all! I use CENTOS 5.0 (Linux). I need some links to download JBoss Server correctly ! Please guide to me ! thank. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4095871#4095871 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095871 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Secure about -ds.xml !
Hi all ! Before, I showed the article of security inside -ds.xml (inside \server\default\deploy) but now I don't remember its links. My -ds.xml file : . | local-tx-datasource |jndi-nameMySqlDS/jndi-name | connection-urljdbc:mysql://localhost/MyDatabase/connection-url |driver-classcom.mysql.jdbc.Driver/driver-class |user-nameroot/user-name --- Not secure ! |passwordiloveyou/password--- Not secure ! |min-pool-size5/min-pool-size |max-pool-size20/max-pool-size |metadata | type-mappingmySQL/type-mapping |/metadata | /local-tx-datasource | . Please Can show me some links about it ! Thank. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4095063#4095063 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Configure JBoss to connect to multi database on multi ma
When JBoss start success, I open mySQL and I recognize that: anonymous wrote : On B machine, BDatabase have some tables: hilosequences, jms_messages, jms_roles, |But on the C machine, CDatabase has not some tables as BDatabase. --- Why CDatabase has not (if datasource has been successfully bound to the JNDI name)? I haven't operated with CDatabase ! But I think that if my datasources (include BDatabase and CDatabase) has been successfully bound to the JNDI name --- Both of them must have some tables (as above). But only BDatabas have ! Please guide to me why ! Thanks. catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092897#4092897 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092897 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Configure JBoss to connect to multi database on multi ma
Now, I write a entity named Log_Entry @Entity | @Table(name = log_records, schema = CDatabase) | public class LogEntry implements Serializable { |private int id; |private Timestamp date; |public LogEntry(final Level lvl, final String msg) { | | } | @Id | @GeneratedValue(strategy = GenerationType.AUTO) | public int getId() { | return id; | } | And I have persistent.xml: persistence | persistence-unit name=CDatabase | jta-data-sourcejava:/MySqlDSTmp/jta-data-source | properties | property name=hibernate.hbm2ddl.auto value=update / | property name=hibernate.connection.driver_class | com.mysql.jdbc.Driver | /property | property name=hibernate.default_schema | CDatabase | /property | property name=hibernate.dialect | org.hibernate.dialect.MySQLDialect | /property | /properties | /persistence-unit | /persistence And I have some errors: 15:41:36,045 ERROR [SchemaUpdate] Unsuccessful: create table 456.log_records (id | integer not null auto_increment, message varchar(255), date datetime, level var | char(255), primary key (id)) | 15:41:36,061 ERROR [SchemaUpdate] Syntax error or access violation message from | server: You have an error in your SQL syntax; check the manual that corresponds | to your MySQL server version for the right syntax to use near '456.log_records | (id integer not null auto_increment, message varchar(255), date ' at line 1 But same as BDatabase, I deploy success (open MySql, and I see log_entry table!)! -- mean that JBoss server not connect to CDatabase (not effect). have some ideas ! Thank. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092903#4092903 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092903 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Configure JBoss to connect to multi database on multi ma
Oh! sorry. Not anonymous wrote : 456 .log_records. It is : 15:41:36,045 ERROR [SchemaUpdate] Unsuccessful: create table CDatabase .log_records (id | integer not null auto_increment, message varchar(255), date datetime, level var | char(255), primary key (id)) | 15:41:36,061 ERROR [SchemaUpdate] Syntax error or access violation message from | server: You have an error in your SQL syntax; check the manual that corresponds | to your MySQL server version for the right syntax to use near 'CDatabase.log_records | (id integer not null auto_increment, message varchar(255), date ' at line 1 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093244#4093244 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093244 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Configure JBoss to connect to multi database on multi ma
Today, I tried and success! I recognized that: 1. Inside my Log_Entry entity has id filed and I edit to idMess | 2. When I create the new schema in MySql, not begin a number (ex: not 2xxx, it should begin with character axxx). Thank you jaikiran very much! Your helps are very useful for me. I come from Vietnam. In Vietnam, I don't show The JBoss Organize that I can learn to get The JBoss Certificated ! Can you have ideas about it ? Thank again. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093248#4093248 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093248 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Configure JBoss to connect to multi database on multi machin
Hi all! anonymous wrote : I have three machine (A, B, C). | I have installed JBoss server on machine A. | On B, I have installed MySQL. On C, I have installed Oracle. How I can configure JBoss server to when JBoss start, it can simultaneous connect to both of my database (MySQL and Oracle). I also try follow: On A, I create two hsqldb-ds.xml and oracledb-ds.xml (inside \server\default\deploy) but not effect ! anonymous wrote : And when install JBoss, I choosen Local on the DataSource Configuration part. Have some ideas about this problem ? Guide to me or show me some documents to solve my problem. Thanks. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092400#4092400 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092400 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Configure JBoss to connect to multi database on multi ma
I use jboss-4.0.5.GA, EJB 3.0 and WinXP. On B and C, I installed MySQL. On A, inside \server\default\deploy, I have two file: remote1-ds.xml and remote2-ds.xml. remote1-ds.xml: datasources | local-tx-datasource | jndi-nameMySqlDS/jndi-name | connection-urljdbc:mysql://computerB/Bdatabase/connection-url | driver-classcom.mysql.jdbc.Driver/driver-class | user-namepc6/user-name | passwordpc6/password | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | metadata |type-mappingmySQL/type-mapping | /metadata | /local-tx-datasource | /datasources remote2-ds.xml: datasources | local-tx-datasource | jndi-nameMySqlDS/jndi-name | connection-urljdbc:mysql://computerC/Cdatabase/connection-url | driver-classcom.mysql.jdbc.Driver/driver-class | user-namepc6/user-name | passwordpc666/password | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | metadata |type-mappingmySQL/type-mapping | /metadata | /local-tx-datasource | /datasources When, I install JBoss on A machine, I choosen Local on the DataSource Configuration part. When JBoss start, I received some error: --- Incompletely deployed packages --- | [EMAIL PROTECTED] { url=file:/C:/Program Files/jboss- | 4.0.5.GA/server/default/deploy/remote2-ds.xml } | deployer: [EMAIL PROTECTED] | status: Deployment FAILED reason: Trying to install an already registered mbea | n: jboss.jca:service=LocalTxCM,name=MySqlDS | state: FAILED | watch: file:/C:/Program Files/jboss-4.0.5.GA/server/default/deploy/remote2-ds. | xml | altDD: null | lastDeployed: 1191892567170 | lastModified: 1191892567139 | mbeans: After, I edited remote2-ds.xml from MySqlDS to MySqlDSTmp: datasources | local-tx-datasource | jndi-nameMySqlDSTmp/jndi-name | connection-urljdbc:mysql://computerC/CDatabase/connection-url | driver-classcom.mysql.jdbc.Driver/driver-class | user-namepc6/user-name | passwordpc666/password | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | metadata |type-mappingmySQL/type-mapping | /metadata | /local-tx-datasource | /datasources But when JBoss start, I don't received some errors but only BDatabase (MySqlDS) on B machine that JBoss can connect (it have some tables same as: hilosequences, jms_messages, ...). CDatabase on C machine is not. Although, JBoss show some infomations: 08:44:01,255 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca | :service=DataSourceBinding,name=MySqlDSTmp' to JNDI name 'java:MySqlDSTmp' Guide to me, thanks. catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4092820#4092820 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How setup JBoss for the Timeout ?
Thank you very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091872#4091872 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091872 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How setup JBoss for the Timeout ?
Thanks. Oh, sorry! My application is not web-application (my application has two file jboss.xml and ejb-jar.xml and both of them exist inside the META-INF folder). So where I configure timeout for my application ? Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091354#4091354 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091354 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How setup JBoss for the Timeout ?
My application use DatabaseLoginModule and JAAS. I write a login form (standalone application) to client can enter userName and passWord. And after client login successful, he can call some methods on beans. Example: LoginContext lc = new LoginContext(client, loginForm); | lc.login(); | ...My works here... --- call some methods on beans | lc.logout(); My mind is if he login successful, and he do nothing and 10 minutes later, he will logout automatically (same as window system). I thanks for some your relplies, it's very usefull ! Sorry, my E is not good. Expect some guides from you ! catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091411#4091411 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Restrict number of clients connect to JBoss !
I have found server.xml file. And I really want to limit the number of standalone clients connecting to EJBs. I can do this by manage my database but I want know have some difference ways to do this? Can I configure JBoss to do this? And my application is not web application. Please guide to me. Again, I am sorry about my same questions! And I believe it's not again. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091780#4091780 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How setup JBoss for the Timeout ?
Have any ideas ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091789#4091789 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: List all connected users
I have same problem. If I can to list login of all users connected to a JBoss application, I can check and not allow the certain clients use the same account to login.(Ex: A use usename aaa, but If B use username aaa --- he can't login!). have some ideas ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091798#4091798 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How setup JBoss for the Timeout ?
Oh, sorry. My purpose is setup the idle time for clients. Description: If client A login successful, and if he do nothing (about 10 minutes) - he doesn't call any methods on my beans - he will logout automatically! Have some ideas about my problem. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091814#4091814 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - How setup JBoss server for the Time-out ?
Hi all! I use anonymous wrote : jboss-4.0.5.GA, EJB3.0 And I am looking for the session-timeout ! Does JBoss support the timeout if the client (A) was login and he do nothing in a specific time (example 10 minutes), then A will logout automatically? I think that I must configure inside my jboss.xml, am I right ? If right, Can show me a example inside jboss.xml ? Please guide to me or show me some article about my this problem. Thank! Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4091309#4091309 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4091309 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - How setup JBoss for the Timeout ?
Hi all! I use anonymous wrote : jboss-4.0.5.GA, EJB3.0 Does Jboss support the timeout if the client (A) was login and he do nothing in a specific time (example 10 minutes), then A will logout automatically? Please guide to me or show me some article about my this problem. Thank! Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090540#4090540 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: How setup JBoss for the Timeout ?
I am looking for the session-timeout ! So, I must configure inside my jboss.xml, am I right ? Can show me a fragment of this problem inside jboss.xml ? Thanks very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4090874#4090874 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: I need help about Messaging!
Hi all! I solved my problem. I imported jbossall-client into my project, all things ok. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4085904#4085904 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4085904 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: I need help about Messaging!
Hi ! Sorry, my English is not good. The first, thanks to reply. My work is very urgent and I'm beginner with MDB and JMS so I post any where to expect reply from some one. The second, I'm sorry because I locate incorrectly. Thank you very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4085387#4085387 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4085387 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: I need help about Messaging!
Hi ! I edited my MDB, and it's Ok. My jbossmq-myqueues-service.xml is look like: mbean code=org.jboss.mq.server.jmx.Queue | name=jboss.mq.destination:service=Queue,name=myQueue | depends optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends | /mbean And I put it inside /deploy -- all things are Ok. but when I write a client that send some TextMessage : InitialContext jndiContext = getInitialContext( ); | try { |ConnectionFactory factory = (ConnectionFactory)jndiContext.lookup(ConnectionFactory); |Queue queueTmp= (Queue)jndiContext.lookup(queue/producerQueue); |Connection connect = factory.createConnection( ); |Session session = connect.createSession(false,Session.AUTO_ACKNOWLEDGE); |MessageProducer sender = session.createProducer(queueTmp); |for(int i=0; i10; i++){ | TextMessage t = session.createTextMessage(); | t.setText(new Timestamp(System.currentTimeMillis())+ JmsClientProducer Message +i); | sender.send(t); | Thread.sleep(1000); | } | connect.close(); | } catch (NamingException e) { | .. | } And my jndi.properties is look like: anonymous wrote : java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | java.naming.provider.url=localhost:1099 When I run client, I received some errors: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: | java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(Unknown Source) | at thai.jms.client.JmsClient.main(JmsClient.java:33) | Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: | java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled) | at sun.rmi.server.UnicastRef.invoke(Unknown Source) | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | ... 3 more --- and error at line: ConnectionFactory factory = (ConnectionFactory)jndiContext.lookup(ConnectionFactory); But inside my MDB, I were declared: @Resource(mappedName=ConnectionFactory) | private ConnectionFactory connectionFactory; I understand your suggestions.And althought, I posted my article not correct but I recognized your helps and can you continue guide some my remain problems ? Thanks. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4085827#4085827 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4085827 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - My problem about JMS MDB !
Hi all! I read about JMS and MDB inside Mastering. EJB.4th.Edtion (chapter 7). I use anonymous wrote : jboss-4.0.5.GA and EJB 3.0 I writed a Message Driver Bean, look like: | public class LogBean implements MessageListener { | public LogBean() { | System.out.println(LogBean created); | } | public void onMessage(Message msg) { | if (msg instanceof TextMessage) { | TextMessage tm = (TextMessage) msg; | try { | String text = tm.getText(); | System.out.println(Received new message : + text); | } catch (JMSException e) { | e.printStackTrace(); | } | } | } | | public void remove() { | System.out.println(LogBean destroyed.); | } | } And, I have ejb-jar.xml: ... | enterprise-beans | message-driven | ejb-nameLogBean/ejb-name | ejb-classmdb.com.LogBean/ejb-class | messaging-typejavax.jms.MessageListener/messaging-type | transaction-typeBean/transaction-type | message-destination-typejavax.jms.Topic/message-destination-type | | activation-config | activation-config-property | activation-config-property-namedestinationType/activation-config-property-name | activation-config-property-valuejavax.jms.Topic/activation-config-property-value | /activation-config-property | /activation-config | /message-driven | /enterprise-beans But when I deploy it on JBoss server, I received some errors: org.jboss.deployment.DeploymentException: Required configproperty [EMAIL PROTECTED] [EMAIL PROTECTED] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Topic)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar' | I think that I must configure JBoss but I don't know where I do this ? Please guide to me or show me some documents about this problem. Thanks very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084897#4084897 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084897 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: My problem about JMS MDB !
I added my ejb-jar.xml inside META-INF but I also received above errors. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4084900#4084900 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4084900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - I need help about Messaging!
Hi all ! I use jboss-4.0.5.GA and EJB3.0 I write a Message-Driven Bean. It's very simple and look like : public class LogBean implements MessageListener { | public void onMessage(Message msg) { | if (msg instanceof TextMessage) { | TextMessage tm = (TextMessage) msg; | try { | String text = tm.getText(); | System.out.println(Received new message : + text); | } catch (JMSException e) { | e.printStackTrace(); | } | } | } | } My ejb-jar.xml: enterprise-beans | message-driven | ejb-nameLogBean/ejb-name | ejb-classmdb.com.LogBean/ejb-class | messaging-typejavax.jms.MessageListener/messaging-type | transaction-typeBean/transaction-type | message-destination-typejavax.jms.Topic/message-destination-type | | activation-config | activation-config-property | activation-config-property-namedestinationType/activation-config-property-name | activation-config-property-valuejavax.jms.Topic/activation-config-property-value | /activation-config-property | /activation-config | /message-driven | /enterprise-beans But when I run JBoss Server, I received some errors: anonymous wrote : org.jboss.deployment.DeploymentException: Required configproperty [EMAIL PROTECTED] | 38ad[name=destination [EMAIL PROTECTED] for messagingType 'ja | vax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=ja | vax.jms.Topic)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar' | I put my ejb-jar inside META-INF folder. I think that I must configure JBoss Server but I don't know where I do this. Please guide to me or show me some documents. Thanks. Catania. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4085296#4085296 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4085296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Error when use Log4jSocketServer and SocketAppender !
Hi all! I use anonymous wrote : jboss-4.0.5.GA, EJB3.0 XP_SP2 I use anonymous wrote : Log4jSocketServer and SocketAppender to log some request from clients to server. (Example both of server and client is the same machine, and host name: pc6 and has IP is: 192.168.1.228). Ok, inside server\default\conf\jboss-service.xml, I added: ... | mbean code=org.jboss.logging.Log4jSocketServer |name=jboss.system:type=Log4jService,service=SocketServer |attribute name=Port/attribute |attribute name=BindAddress${jboss.bind.address}/attribute | /mbean Then, inside server\default\conf\log4j.xml, I added: ... | appender name=MY_SOCKET class=org.apache.log4j.net.SocketAppender |param name=Port value=/ |param name=RemoteHost value=pc6/ -- or 192.168.1.228 |param name=ReconnectionDelay value=3/ |param name=Threshold value=INFO/ | /appender But when I restart JBoss Server, I received some errors: log4j:ERROR Could not connect to remote log4j server at [pc6]. We will try again later. | java.net.ConnectException: Connection refused: connect | at java.net.PlainSocketImpl.socketConnect(Native Method) | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) | ... Please guid to me how way fixed my errors. (Sorry, my English is not good.) Thanks very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082439#4082439 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082439 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Log4j with Swing components !
Hi all! Iam a begginer with JBoss. I use anonymous wrote : jboss-4.0.5.GA and EJB3.0 I read about Log4j and know that Log4j can support to output some messages to Swing components. Please guide to me or show me some documents about this problem. Thanks very much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4081549#4081549 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user