RE: [JBoss-user] Application configuration
We can create a MBean with start and stop. Start will read all config data into a data structure (we can use castor or any XML to java binding tools JAXB ) when JBOSS starts and Session bean can access this data structure(HashMap etc). Looks for examples in JBOSS Admin guide chapter 2 JMX Micro kernel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 5:11 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Application configuration Not sure if this will work for you... But I have an entity bean which contains my configuration. I simply lookup the (configuration) entity and get the values that I need in my Session bean. This might work for you aswell... Regards, Harm de Laat Informatiefabriek The Netherlands "Giovanni Formenti" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/04/2003 11:00 AM Please respond to [EMAIL PROTECTED] To "Jboss Mailinglist" <[EMAIL PROTECTED]> cc Subject [JBoss-user] Application configuration Hallo! I'm developing an application that have a Session Bean that execute some operations on a db. I'd like to write some configuration elements in a xml files and load them at startup (when JBoss is started) and put them in a storage class (simply a javabean). The Session EJB must access this class and read the config infos. Can someone give me some idea who to do this?! Thanx Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Release: jboss-3.2.2-jetty-4.2.14.sar
A jbossweb sar for jboss 3.2.2 and jetty 4.2.14 is now available at http://sourceforge.net/projects/jetty/ Jetty 4.2.14 is a minor maintenance release: Jetty-4.2.14 - 4 November 2003 + respect content length when decoding form content. + JBoss integration uses writer rather than stream for XML config handling + Fixed NPE in SSO + Expire pages that contain set-cookie as per RFC2109 recommendation Jetty-4.2.14RC1 - 19 October 2003 + Reworked Dispatcher to better support cross context sessions. + Added UserRealm.logout and arrange for form auth & session invalidation to call it + Allow customization of HttpConnections + Failed requests excluded from duration stats. Jetty-4.2.14RC0 - 7 October 2003 + Correctly setup context classloader in cross context dispatch. + Put a semi busy loop into proxy tunnels for IE problems + Fixed handling of error pages for IO and Servlet exceptions + updated extra/j2ee to jboss 3.2.1+ + Use File.toURI().toURL() when jdk 1.2 alternative is available. + cookie timestamps are in GMT + Priority on ThreadedServer + replaced win32 service with http://wrapper.tanukisoftware.org + Build fileclasspath from a walk of the classloaders + Set TransactionManager on JettyPlus datasources and pools + Fixed null pointer if no sevices configured for JettyPlus + Fixed comments with embedded double dashes on jettyplus.xml file + Improved JMX start mechanism Jetty-4.2.12 - 12 August 2003 + Restore max inactive interval for session manager + Removed protection of org.mortbay.http attributes + Fixed parameter ordering for a forward request. + Fixed up HTAccessHandler + Improved error messages from ProxyHandler + Added missing S to some OPTIONS strings + Added open method to threaded server. + FORMAuthenticator does 403 with empty error page. + Fixed MIME types for chemicals + Padding for IE in RootNotFoundHandler --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] relationship 1-* with foreign key
Pedro Salazar wrote: When happens that the entity in the database has no primary key, we must generate a key for the entity bean which may not exist in database, right? But if that key has no persistence, how the container will handle it? And the cluster works fine with that (probably)? Are you saying that entity's primary key value is not stored in the database? Now, I'm getting this error (I think it's a dummy one): It looks like a many-to-many relationship. What if you try sIDId instead? [ObjectName: jboss.j2ee:jndiName=ejb/AccessScheduleLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: CMP field for key not found: field name=SIDId, ObjectName: jboss.j2ee:jndiName=ejb/AccessPermissionLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: CMP field for key not found: field name=SIDId] Again, my long relation (xdoclet): /** * @ejb.relation * name="access_permission_TO__access_schedule" * role-name="access_permission_HAS_schedules" * cascade-delete="no" * target-ejb="AccessSchedule" * target-role-name="schedules_BELONG_TO_access_permission" * target-cascade-delete="yes" * @ejb.interface-method * view-type="local" * @ejb.transaction * type="Supports" * @jboss.relation * related-pk-field="SIDId" * fk-column="SIDId" * @jboss.relation * related-pk-field="primitiveId" * fk-column="primitiveId" * @jboss.target-relation * related-pk-field="SIDId" * fk-column="SIDId" * @jboss.target-relation * related-pk-field="primitiveId" * fk-column="primitiveId" * @jboss.relation-mapping * style="relation-table" * @jboss.relation-table * table-name="uif_access_permission" */ public abstract java.util.Collection getSchedules(); Note that the primitiveId or SIDId names are my fields in the entity beans which are different from primitive_id and sid_id (database attributes). So, what is wrong here? thanks, Pedro Salazar. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] relationship 1-* with foreign key
On Tue, 2003-11-04 at 16:34, Alexey Loubyansky wrote: > Do you define relationships in jbosscmp-jdbc.xml? Yes. It was generated through xdoclet. > > The table might not have a primary key but entity must have according to > the spec. Do you have primkey-field defined in ejb-jar.xml? > When happens that the entity in the database has no primary key, we must generate a key for the entity bean which may not exist in database, right? But if that key has no persistence, how the container will handle it? And the cluster works fine with that (probably)? Now, I'm getting this error (I think it's a dummy one): [ObjectName: jboss.j2ee:jndiName=ejb/AccessScheduleLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: CMP field for key not found: field name=SIDId, ObjectName: jboss.j2ee:jndiName=ejb/AccessPermissionLocal,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: CMP field for key not found: field name=SIDId] Again, my long relation (xdoclet): /** * @ejb.relation * name="access_permission_TO__access_schedule" * role-name="access_permission_HAS_schedules" * cascade-delete="no" * target-ejb="AccessSchedule" * target-role-name="schedules_BELONG_TO_access_permission" * target-cascade-delete="yes" * @ejb.interface-method * view-type="local" * @ejb.transaction * type="Supports" * @jboss.relation * related-pk-field="SIDId" * fk-column="SIDId" * @jboss.relation * related-pk-field="primitiveId" * fk-column="primitiveId" * @jboss.target-relation * related-pk-field="SIDId" * fk-column="SIDId" * @jboss.target-relation * related-pk-field="primitiveId" * fk-column="primitiveId" * @jboss.relation-mapping * style="relation-table" * @jboss.relation-table * table-name="uif_access_permission" */ public abstract java.util.Collection getSchedules(); Note that the primitiveId or SIDId names are my fields in the entity beans which are different from primitive_id and sid_id (database attributes). So, what is wrong here? thanks, Pedro Salazar. -- -PS --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] WSR & delpoy
Yup, I got the same. Actually the problem is diffrent. If you enable log4j on axis, you'll see the problem: it's a ClassCastException. When you redeploy, the RMI narrow at Axis crashes for some weird reason. I already opened a bug at Axis Bugzilla, no response so far (Seems that the home interface is cached and Axis tried to recast the 'old' version) -> Check the server log to see if you have a ClassCastException I am afraid it's an open bug and there's no solution to this problem right now :/ If you find something, let us know. Regards, Stephane -Original Message- From: Giovanni Formenti [mailto:[EMAIL PROTECTED] Sent: Tue 11/4/2003 18:03 To: Jboss Mailinglist Cc: Subject:[JBoss-user] WSR & delpoy Hallo! I developed an EAR with a WSR. The web services are only interfaces to my session bean... all it work good! But when i modify and redeploy the ear JBoss says to me something like: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Tried to invoke method public java.util.Map [...].resolve(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException: object is not an instance of declaring class faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Tried to invoke method public java.util.Map [...].resolve(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException: object is not an instance of declaring class faultActor: faultNode: faultDetail: Maybe "object is not an instance of declaring class" i said... but i restart jboss and all works great! :) And this every redeploy... Any idea? Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user <>
[JBoss-user] WSR & delpoy
Hallo! I developed an EAR with a WSR. The web services are only interfaces to my session bean... all it work good! But when i modify and redeploy the ear JBoss says to me something like: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Tried to invoke method public java.util.Map [...].resolve(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException: object is not an instance of declaring class faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Tried to invoke method public java.util.Map [...].resolve(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException: object is not an instance of declaring class faultActor: faultNode: faultDetail: Maybe "object is not an instance of declaring class" i said... but i restart jboss and all works great! :) And this every redeploy... Any idea? Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] relationship 1-* with foreign key
Do you define relationships in jbosscmp-jdbc.xml? The table might not have a primary key but entity must have according to the spec. Do you have primkey-field defined in ejb-jar.xml? Pedro Salazar wrote: Greetings, I have a table Access_Permission that _has_ relation 1-* to Access_Schedule. This table Access_Permission has two attributes (uniques), A1 and A2, that would be the foreign keys of the table Access_Schedule. Access_Permission Access_Schedule - --- A1 -- 1-N --> A1 A2 A2 ... ... (A1,A2) UNIQUE (A1,A2) FK These tables are mapped in two entity beans (CMP). The Access_Schedule bean has no primary keys, only foreign keys. I defined a relationship between them (access_permission_schedule), but I'm getting this error when deploying the beans: " Atleast one role of a foreign-key mapped relationship must have key fields (or is missing from ejb-jar.xml): ejb-relation-name=access_permission_schedule] " I'm using xdoclet to generate the descriptors and this is the entry of my relation on Access_Permission bean: /** * @ejb.relation * name="access_permission_schedule" * role-name="X1" * cascade-delete="no" * target-ejb="AccessSchedule" * target-role-name="X2" * @ejb.interface-method * view-type="local" * @ejb.transaction * type="Supports" */ public abstract java.util.Collection getSchedule(); Any comments are welcome! thanks, Pedro Salazar. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Attempt to get lock ref with a null object
On Tue, 2003-11-04 at 14:57, [EMAIL PROTECTED] wrote: > Hi all I did some googling however to no avail, I found a reference to > faq, but I never found the faq. And the answer is talking about generated > db keys, which I believe is not the issue. > So I'm questioning again hoping no one takes offense. > Any way point is this: > I create in a session bean an instance of a cmp entity bean (using the > localhome interface) Which goes really well. I get back a Local interface, > and on this local interface I call setAnotherProperty(). At this point I > get the error below. And no trace in the db of the created record, > However when I comment out the last (setAnotherProperty) all works well > again, obviously with a null value in the db? > What goes wrong or where am I wrong? > Your primary key is null. It is either null or not mapped correctly in your configuration. Regards, Adrian > tia, > Jroen > > 2003-11-02 22:15:49,961 ERROR [org.jboss.ejb.plugins.LogInterceptor] > TransactionRolledbackLocalException, causedBy: > java.lang.IllegalArgumentException: Attempt to get lock ref with a null > object > at org.jboss.ejb.BeanLockManager.getLock(BeanLockManager.java:80) > at > org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:81) > at > org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53) > at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) > at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) > at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) > at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) > at > org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) > at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483) > at org.jboss.ejb.Container.invoke(Container.java:674) > at > org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353) > at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) > at $Proxy227.setInfo(Unknown Source) > > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Jboss and ASP data center
Title: R: [JBoss-user] Jboss and ASP data center does exist anyone with some hints for me -Messaggio originale- Da: Maffeo Gaetano [mailto:[EMAIL PROTECTED]] Inviato: martedì 4 novembre 2003 8.43 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] Jboss and ASP data center Hi all i have a little problem and i hope somebody can help me. I am developing an application in order to wrk in an ASP data center I build an eargp application under jboss and now i wish to have more then one context root with the same application. In other words i wish that http://localhost:8080/myapp1 http://localhost:8080/myapp2 http://localhost:8080/myapp3 be obtained from one ear application. In such a way, with the context root the user used to access i can set the database and other things from my properties files. How can i do in order to modify my ear and obtain such a solution? many thanks in advance gaetano --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Attempt to get lock ref with a null object
Hi all I did some googling however to no avail, I found a reference to faq, but I never found the faq. And the answer is talking about generated db keys, which I believe is not the issue. So I'm questioning again hoping no one takes offense. Any way point is this: I create in a session bean an instance of a cmp entity bean (using the localhome interface) Which goes really well. I get back a Local interface, and on this local interface I call setAnotherProperty(). At this point I get the error below. And no trace in the db of the created record, However when I comment out the last (setAnotherProperty) all works well again, obviously with a null value in the db? What goes wrong or where am I wrong? tia, Jroen 2003-11-02 22:15:49,961 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: java.lang.IllegalArgumentException: Attempt to get lock ref with a null object at org.jboss.ejb.BeanLockManager.getLock(BeanLockManager.java:80) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:81) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:483) at org.jboss.ejb.Container.invoke(Container.java:674) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy227.setInfo(Unknown Source) --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] refresh entity beans by request?
We support read only beans with a timeout. You can also flush the ejb cache programatically. Look at the ejb cache JMX object through the jmx console. The mbean for a cache has a name of the form: jboss.j2ee:jndiName=,plugin=cache,service=EJB -- Scott Stark Chief Technology Officer JBoss Group, LLC Pedro Salazar wrote: Greetings, I would like to know if is possible to refresh my entity beans by request? My scenario: I have a XML file that represents the initial configuration of my system that I would like to put it on a database where a set of entity beans will reflect those data. Because my data would be almost the time static, I would like that the entity beans should be used as "read-only" most the time. However, from time to time, I would like to refresh the entity beans with new values. Probably the XML file is updated, and my database should be also updated and the entity beans should be also reflected by its turn. Any suggestions how to it? One issue that is very important: I would like to update by one pass, I mean, I don't want update one by one where that could exist incoherences in the system (half data updated, half data old). I want to use entity beans because I intend to use several jboss instances (~cluster). thanks, Pedro Salazar. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] relationship 1-* with foreign key
Greetings, I have a table Access_Permission that _has_ relation 1-* to Access_Schedule. This table Access_Permission has two attributes (uniques), A1 and A2, that would be the foreign keys of the table Access_Schedule. Access_Permission Access_Schedule - --- A1 -- 1-N --> A1 A2 A2 ... ... (A1,A2) UNIQUE (A1,A2) FK These tables are mapped in two entity beans (CMP). The Access_Schedule bean has no primary keys, only foreign keys. I defined a relationship between them (access_permission_schedule), but I'm getting this error when deploying the beans: " Atleast one role of a foreign-key mapped relationship must have key fields (or is missing from ejb-jar.xml): ejb-relation-name=access_permission_schedule] " I'm using xdoclet to generate the descriptors and this is the entry of my relation on Access_Permission bean: /** * @ejb.relation * name="access_permission_schedule" * role-name="X1" * cascade-delete="no" * target-ejb="AccessSchedule" * target-role-name="X2" * @ejb.interface-method * view-type="local" * @ejb.transaction * type="Supports" */ public abstract java.util.Collection getSchedule(); Any comments are welcome! thanks, Pedro Salazar. -- -PS signature.asc Description: This is a digitally signed message part
Re: [JBoss-user] flushAuthenticationCache: what is cached?
If you want the new credentials to apply immediately you need to flush the cache. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian Wallis wrote: I have an app that uses a derivation of UserRolesLoginModule, ie: it uses users.properties, passwd.properties and roles.properties files for the authentication info. We have a function in our system that updates these files from an SQL database via a little bit of JDBC code. Do I needto call flushAuthenticationCache after doing this update? I had a read of the code but it is still unclear what is actually cached. it looks like only the roles? thanks, brian wallis... --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Application configuration
Hi, I would suggest that you use jConfig (www.jconfig.org). They also have an MBean that you can use. You can then use a JNDI lookup to get the configuration. Pretty easy. - Original Message - From: "Giovanni Formenti" <[EMAIL PROTECTED]> To: "Jboss Mailinglist" <[EMAIL PROTECTED]> Sent: Tuesday, November 04, 2003 11:00 AM Subject: [JBoss-user] Application configuration > Hallo! > I'm developing an application that have a Session Bean that execute some > operations on a db. I'd like to write some configuration elements in a xml > files and load them at startup (when JBoss is started) and put them in a > storage class (simply a javabean). The Session EJB must access this class > and read the config infos. > Can someone give me some idea who to do this?! > > Thanx > Gio > > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] refresh entity beans by request?
Greetings, I would like to know if is possible to refresh my entity beans by request? My scenario: I have a XML file that represents the initial configuration of my system that I would like to put it on a database where a set of entity beans will reflect those data. Because my data would be almost the time static, I would like that the entity beans should be used as "read-only" most the time. However, from time to time, I would like to refresh the entity beans with new values. Probably the XML file is updated, and my database should be also updated and the entity beans should be also reflected by its turn. Any suggestions how to it? One issue that is very important: I would like to update by one pass, I mean, I don't want update one by one where that could exist incoherences in the system (half data updated, half data old). I want to use entity beans because I intend to use several jboss instances (~cluster). thanks, Pedro Salazar. -- PS [EMAIL PROTECTED] PGP:0E129E31D803BC61 --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMS datasource shutting down question
On Mon, 2003-11-03 at 17:37, Michael Klem wrote: > My app is currently using MySQL as the JMS datastore. I found that if > I stop MySQL while the app is running and connected to it, JBoss will > shutdown without any log info added to the server.log. It acts as if > it has been killed. > > Is this expected behaviour? I imagined that the app would generate > errors when trying to use JMS, but not shutdown. > Sounds like it has crashed? Hard to tell your description is bit a vague. Do you have a jvm dump? Regards, Adrian > > JBoss 3.0.8 > MySQL 4.0.14 -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Dynamic QL
java.lang.Object[] Regards, Adrian On Tue, 2003-11-04 at 09:56, [EMAIL PROTECTED] wrote: > Hi All, > > I have a subscription to the yearly documentation. In the documentation I > found an example on how to use Dynamic QL. > > Because my code uses XDoclet for code generation I had to modify the > example somewhat. This is what I came up with: > > In my EntityBean: > > /** > * @param jbossQl > * @param args > * @return > * @throws FinderException > */ > public abstract Collection ejbSelectGeneric(java.lang.String > jbossQl, Object[] args) throws FinderException; > > /** > * @ejb.home-method view-type = "local" > * @param edition > * @param week > * @param status > * @param relno > * @param brand > * @return > */ > public Collection ejbHomeSelectBySearchCriteria( > String edition, > String week, > String status, > String relno, > String brand) throws FinderException { > > StringBuffer jbossQl = new StringBuffer(); > jbossQl.append("SELECT OBJECT(a) "); > jbossQl.append("FROM Advertisement "); > jbossQl.append("WHERE "); > Collection arguments = new Vector(); > int count = 0; > > if (!edition.equals("%")) { > count++; > jbossQl.append("a.edition = ?" + count); > > arguments.add(edition); > } > > if (!week.equals("-1")) { > count++; > jbossQl.append("AND a.weekNo = ?" + count); > arguments.add(week); > } > > if (!status.equals("-1")) { > count++; > jbossQl.append(" AND a.status = ?" + count); > arguments.add(status); > } > > if (!relno.equals("%")) { > count++; > jbossQl.append(" AND a.relation.relationId = ?" + > count); > arguments.add(relno); > } > > count++; > if (count == 1) { > jbossQl.append("a.brand = ?" + count + " ORDER BY > a.status"); > } else { > jbossQl.append(" AND a.brand = ?" + count + " > ORDER BY a.status"); > } > arguments.add(brand); > > System.out.println(jbossQl.toString()); > System.out.println("Arguments:"); > Iterator it = arguments.iterator(); > count = 0; > while (it.hasNext()) { > count++; > System.out.println("" + count + " : " + (String) > it.next()); > } > > // pack arguments in Object[] > Object[] args = arguments.toArray(); > > return ejbSelectGeneric(jbossQl.toString(), args); > > } > > In my Session Facade: > > /** > * @ejb.interface-method > * @param edition > * @param week > * @param status > * @param relno > * @return > */ > public Collection getAdvertisementBySearchCriteria( > String edition, > String week, > String status, > String relno, > String brand) { > AdvertisementLocalHome home = getAdvertisementLocalHome(); > Collection col = home.selectBySearchCriteria(edition, > week, status, relno, brand); > return null; > } > > When I run XDoclet I get the following jboss-cmp-jdbc.xml (part): > > > >ejbSelectGeneric > > java.lang.String > Object[] > > > > > > This look good to me... Then I package my EAR and try to deploy, I get the > following error: > > 10:41:51,617 INFO [EARDeployer] Init J2EE application: > file:/usr/java/jboss-3.2.2RC4/server/om/deploy/ordermanager-ejb.ear > 10:42:00,808 WARN [verifier] EJB spec violation: > Bean : Advertisement > Method : public abstract Collection ejbSelectGeneric(String, Object;) > throws FinderException > Section: 12.2.11 > Warning: Each local home method must match a method defined in the entity > bean class. > > 10:42:01,207 ERROR [MainDeployer] could not create deployment: > file:/usr/java/jboss-3.2.2RC4/server/om/tmp/deploy/tmp9917ordermanager-ejb.ear-contents/ordermanager-ejb.jar > org.jboss.deployment.DeploymentException: Verification of Enterprise Beans > failed, see above for er
RE: [JBoss-user] using mail datasource
May this problem come form message: 2003-11-04 11:04:10,656 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss/server/default/deploy/mail-service.xml 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: JavaMail version 1.3 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\j2sdk1.4.2_02\jre\lib\javamail.providers (Systém nemůže nalézt uvedený soubor) 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: !anyLoaded 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: Tables of loaded providers 2003-11-04 11:04:10,687 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]} 2003-11-04 11:04:10,703 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]} 2003-11-04 11:04:10,703 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map 2003-11-04 11:04:10,703 INFO [STDOUT] DEBUG: !anyLoaded 2003-11-04 11:04:10,703 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map 2003-11-04 11:04:10,703 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\j2sdk1.4.2_02\jre\lib\javamail.address.map (Systém nemůže nalézt uvedený soubor) 2003-11-04 11:04:10,718 INFO [org.jboss.mail.MailService] Mail Service bound to java:/Mail 2003-11-04 11:04:10,718 INFO [org.jboss.mail.MailService] Started jboss:service=Mail 2003-11-04 11:04:10,718 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss/server/default/deploy/mail-service.xml ? Jiri --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] using mail datasource
And in log I have: 2003-11-04 11:08:40,109 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 2003-11-04 11:08:40,109 ERROR [STDERR] java.lang.IllegalStateException: Not connected 2003-11-04 11:08:40,109 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.checkConnected(SMTPTransport.java:1029) 2003-11-04 11:08:40,109 ERROR [STDERR] at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:288) 2003-11-04 11:08:40,109 ERROR [STDERR] at cz.iccc.isspd.utils.Mailer.send(Mailer.java:83) 2003-11-04 11:08:40,109 ERROR [STDERR] at cz.iccc.isspd.businessobjects.schedulable.DocumentValidityKeeper.mail(DocumentValidityKeeper.java:192) my smtp's IP address is valid, and from another application (as mail client) it accepts mails Jirka > my mail-service is: > > archives="mail.jar, activation.jar, mail-plugin.jar"/> > > name="jboss:service=Mail"> > java:/Mail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Application configuration
Not sure if this will work for you... But I have an entity bean which contains my configuration. I simply lookup the (configuration) entity and get the values that I need in my Session bean. This might work for you aswell... Regards, Harm de Laat Informatiefabriek The Netherlands "Giovanni Formenti" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/04/2003 11:00 AM Please respond to [EMAIL PROTECTED] To "Jboss Mailinglist" <[EMAIL PROTECTED]> cc Subject [JBoss-user] Application configuration Hallo! I'm developing an application that have a Session Bean that execute some operations on a db. I'd like to write some configuration elements in a xml files and load them at startup (when JBoss is started) and put them in a storage class (simply a javabean). The Session EJB must access this class and read the config infos. Can someone give me some idea who to do this?! Thanx Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] using mail datasource
my mail-service is: java:/Mail > Your code seems ok. Have you updated the mail-service.xml to your > environment > (meaning host of the SMTP server if you want to send email)? > > Post the definition of your mail-service.xml > > Regards, > > Stephane > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 04, 2003 10:34 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] using mail datasource > > > Hallo, > for what I can use datasource defined in mail-service.xml? Can I use it > for sending mail or I must send mail by another way? > > I tried to use it as : > Context initCtx = new InitialContext(); > session = (Session)initCtx.lookup("java:/Mail"); > mailMsg = new MimeMessage(session); > ... > Transport transport = session.getTransport(); > transport.sendMessage(mailMsg, addresses); > > But it does not work. > It is not possible to use it for sending or I have some mistake? ... > > Thanks, Jiri > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Application configuration
Hallo! I'm developing an application that have a Session Bean that execute some operations on a db. I'd like to write some configuration elements in a xml files and load them at startup (when JBoss is started) and put them in a storage class (simply a javabean). The Session EJB must access this class and read the config infos. Can someone give me some idea who to do this?! Thanx Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] using mail datasource
Yes you can use it for this purpose: InitialContext ic = new InitialContext(); Session session = null; session = (Session) ic.lookup(JNDINames.MAIL_SESSION); /* create the session */ javax.mail.Message msg = new MimeMessage(session); Regards, Harm de Laat Informatiefabriek The Netherlands [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 11/04/2003 10:33 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] using mail datasource Hallo, for what I can use datasource defined in mail-service.xml? Can I use it for sending mail or I must send mail by another way? I tried to use it as : Context initCtx = new InitialContext(); session = (Session)initCtx.lookup("java:/Mail"); mailMsg = new MimeMessage(session); ... Transport transport = session.getTransport(); transport.sendMessage(mailMsg, addresses); But it does not work. It is not possible to use it for sending or I have some mistake? ... Thanks, Jiri --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] using mail datasource
Your code seems ok. Have you updated the mail-service.xml to your environment (meaning host of the SMTP server if you want to send email)? Post the definition of your mail-service.xml Regards, Stephane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] using mail datasource Hallo, for what I can use datasource defined in mail-service.xml? Can I use it for sending mail or I must send mail by another way? I tried to use it as : Context initCtx = new InitialContext(); session = (Session)initCtx.lookup("java:/Mail"); mailMsg = new MimeMessage(session); ... Transport transport = session.getTransport(); transport.sendMessage(mailMsg, addresses); But it does not work. It is not possible to use it for sending or I have some mistake? ... Thanks, Jiri --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss Dynamic QL
Hi All, I have a subscription to the yearly documentation. In the documentation I found an example on how to use Dynamic QL. Because my code uses XDoclet for code generation I had to modify the example somewhat. This is what I came up with: In my EntityBean: /** * @param jbossQl * @param args * @return * @throws FinderException */ public abstract Collection ejbSelectGeneric(java.lang.String jbossQl, Object[] args) throws FinderException; /** * @ejb.home-method view-type = "local" * @param edition * @param week * @param status * @param relno * @param brand * @return */ public Collection ejbHomeSelectBySearchCriteria( String edition, String week, String status, String relno, String brand) throws FinderException { StringBuffer jbossQl = new StringBuffer(); jbossQl.append("SELECT OBJECT(a) "); jbossQl.append("FROM Advertisement "); jbossQl.append("WHERE "); Collection arguments = new Vector(); int count = 0; if (!edition.equals("%")) { count++; jbossQl.append("a.edition = ?" + count); arguments.add(edition); } if (!week.equals("-1")) { count++; jbossQl.append("AND a.weekNo = ?" + count); arguments.add(week); } if (!status.equals("-1")) { count++; jbossQl.append(" AND a.status = ?" + count); arguments.add(status); } if (!relno.equals("%")) { count++; jbossQl.append(" AND a.relation.relationId = ?" + count); arguments.add(relno); } count++; if (count == 1) { jbossQl.append("a.brand = ?" + count + " ORDER BY a.status"); } else { jbossQl.append(" AND a.brand = ?" + count + " ORDER BY a.status"); } arguments.add(brand); System.out.println(jbossQl.toString()); System.out.println("Arguments:"); Iterator it = arguments.iterator(); count = 0; while (it.hasNext()) { count++; System.out.println("" + count + " : " + (String) it.next()); } // pack arguments in Object[] Object[] args = arguments.toArray(); return ejbSelectGeneric(jbossQl.toString(), args); } In my Session Facade: /** * @ejb.interface-method * @param edition * @param week * @param status * @param relno * @return */ public Collection getAdvertisementBySearchCriteria( String edition, String week, String status, String relno, String brand) { AdvertisementLocalHome home = getAdvertisementLocalHome(); Collection col = home.selectBySearchCriteria(edition, week, status, relno, brand); return null; } When I run XDoclet I get the following jboss-cmp-jdbc.xml (part): ejbSelectGeneric java.lang.String Object[] This look good to me... Then I package my EAR and try to deploy, I get the following error: 10:41:51,617 INFO [EARDeployer] Init J2EE application: file:/usr/java/jboss-3.2.2RC4/server/om/deploy/ordermanager-ejb.ear 10:42:00,808 WARN [verifier] EJB spec violation: Bean : Advertisement Method : public abstract Collection ejbSelectGeneric(String, Object;) throws FinderException Section: 12.2.11 Warning: Each local home method must match a method defined in the entity bean class. 10:42:01,207 ERROR [MainDeployer] could not create deployment: file:/usr/java/jboss-3.2.2RC4/server/om/tmp/deploy/tmp9917ordermanager-ejb.ear-contents/ordermanager-ejb.jar org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:768) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
[JBoss-user] using mail datasource
Hallo, for what I can use datasource defined in mail-service.xml? Can I use it for sending mail or I must send mail by another way? I tried to use it as : Context initCtx = new InitialContext(); session = (Session)initCtx.lookup("java:/Mail"); mailMsg = new MimeMessage(session); ... Transport transport = session.getTransport(); transport.sendMessage(mailMsg, addresses); But it does not work. It is not possible to use it for sending or I have some mistake? ... Thanks, Jiri --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] flushAuthenticationCache: what is cached?
I have an app that uses a derivation of UserRolesLoginModule, ie: it uses users.properties, passwd.properties and roles.properties files for the authentication info. We have a function in our system that updates these files from an SQL database via a little bit of JDBC code. Do I needto call flushAuthenticationCache after doing this update? I had a read of the code but it is still unclear what is actually cached. it looks like only the roles? thanks, brian wallis... --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss and ASP data center
Hi all i have a little problem and i hope somebody can help me. I am developing an application in order to wrk in an ASP data center I build an eargp application under jboss and now i wish to have more then one context root with the same application. In other words i wish that http://localhost:8080/myapp1 http://localhost:8080/myapp2 http://localhost:8080/myapp3 be obtained from one ear application. In such a way, with the context root the user used to access i can set the database and other things from my properties files. How can i do in order to modify my ear and obtain such a solution? many thanks in advance gaetano --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user