[JBoss-user] [Persistence & CMP/JBoss] - Re: remove-table=true only removes first table?
Hi. Havn't you solved your problem? I have similar one: the table for the sole bean in my application never gets deleted... wbr, yevgen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854612#3854612 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854612 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Left-join read-ahead
Hi. Could somebody provide a sample app with working Left-join read-ahead mechanism for jboss 4.0? I.e. it should generate LEFT OUTER JOIN clauses in resulting SQL query as it is descirbed in http://www.jboss.org/wiki/Wiki.jsp?page=LeftJoinReadAhead Btw, as far as i can see in the sources org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.LEFT_OUTER_JOIN is used in the JDBCLoadEntityCommand.getDeepSQL only, which is commented out completely ... Am i missing something? Thanx. wbr, evgen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856075#3856075 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856075 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Using PolicyConfiguration in an application
Ok, thanx, but could you please point me to some info about extended permission? Google failed to find anything meaningful about this term but single line in the JBoss RoadMap. wbr, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858466#3858466 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858466 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Using PolicyConfiguration in an application
Hi. There is a need to implement database-driven security layer with minimal possible coding. The administrator should have ability to manage roles, users, privileges and so on via web services interface. Investigating this problem i came to the solution of using PolicyConfiguration to set all necessary permissions in PolicyContext which makes all work done. It looks like PolicyConfigurationFactory pcFactory = PolicyConfigurationFactory.getPolicyConfigurationFactory(); | PolicyConfiguration pc = pcFactory.getPolicyConfiguration("my.jar", true); //TODO | | pc.addToRole("admin", new EJBMethodPermission("MyFacade", "MyEndpoint", MyFacade.class.getMethod("testAuth", new Class[] {}))); In the real app operation name ("testAuth") and role name ("admin") will be read from the DB. The only doubt i have is how legal is using PolicyConfiguration in the application since javadoc states that "The methods of this interface are used by containers"? thanx, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858370#3858370 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858370 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Hotdeployable
Have you found the solution? I have the same problem. And it is really annoying. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859019#3859019 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859019 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: JBoss 4.0 Startup exception in Eclipse 3.0.1
Hi. Have you found the solution? I'm experiencing the same problem and would be thankful for any info... wbr, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850863#3850863 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850863 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Authentication for webservices
Hi all. I've solved the same problem by adding to the generated wsdl the auth headers (i failed to make java2wsdl tool to generate headers, so i've written a "header adder"...) to be filled by C# client with login/password info and then parsed with custom axis handler. Further the credentials are processed by JAAS and JACC interceptors in the standard way... not very elegant, but it works... wbr, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863034#3863034 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863034 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Connection refused: connect
Hi. While stress testing my JbossWS app the client from time to time gets java.net.ConnectException. It happens in about 1-2% of calls. Configuring tomcat's connector with maxThreads="15000" and acceptCount="1000" did not help. Does somebody know some solution or probably will suggest any approaches to investigate this problem? wbr, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864790#3864790 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864790 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Referential Integrity
Hi. What is the preferred way to achieve referential integrity without making columns in db annullable? I.e. i wan't to prohibit deletion of an entity if there is even nullable reference to it. I know that ejb spec says that an object should d be removed from all relations before deletion, but maybe i miss something? What if some kind of interceptor? wbr, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868200#3868200 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868200 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Changing database structure
Hi. Definitely somebody already got the experience of changing database with data which is used by JBoss for CMP. Is there some pitfalls in using special update script generation tools such as DB SynchroComp (http://www.e-dule.com/) ? Or maybe there are better approaches? thanx, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868473#3868473 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868473 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Changing database structure
Have you used this option in production system with important data? Everything was smooth? I saw couple of times that it tried to update table in a way that caused SQL Exception... so i would still afraid to entrust this process to JBoss :). Besides this while using script you can easily create backup ... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868500#3868500 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868500 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Changing database structure
Ok, thank you very mcuh. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868612#3868612 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868612 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Referential Integrity
Hi. Unfortunately i did not receive any answers to the question about referential integrity i had posted more than week ago (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60776). The matter is in making it impossible to delete an entity bean instance while it is referenced from some other entity bean instance. Actually, this is common behavior of any relational database, but this contradicts with ejb spec which states that anonymous wrote : ...After the Bean Provider?s ejbRemove method returns (and prior to returning to the client), the container must remove the entity object from all relationships in which it participates, and then remove its persistent representation. The only solution i can see is to opt for capabilities of underling ER persistence layer and to to implement special interceptor to be inserted in the entity bean's interceptors chain. As far as i understood JBoss CMP APIs i sketched it as following: | /* | * Created on 04.03.2005 13:45:27 | * | */ | package test.ejb; | | import java.rmi.RemoteException; | | import org.jboss.ejb.EntityContainer; | import org.jboss.ejb.EntityEnterpriseContext; | import org.jboss.ejb.EntityPersistenceManager; | import org.jboss.ejb.plugins.AbstractInterceptor; | import org.jboss.ejb.plugins.CMPPersistenceManager; | import org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager; | import org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge; | import org.jboss.invocation.Invocation; | | /** | * @author bushuyev | * | */ | public class DeletionInterceptor extends AbstractInterceptor { | | private EntityPersistenceManager pm; | | public void start() throws Exception { | if (this.container instanceof EntityContainer) { | EntityContainer ec = (EntityContainer)container; | this.pm = ec.getPersistenceManager(); | | } | } | | public Object invoke(Invocation invocation) throws Exception { | | if (invocation.getMethod() != null && invocation.getMethod().getName().equals("remove")) { //$NON-NLS-1$ | org.jboss.ejb.EntityEnterpriseContext ctx = (EntityEnterpriseContext)invocation.getEnterpriseContext(); | | | if ( | ((JDBCCMRFieldBridge)((JDBCStoreManager)((CMPPersistenceManager)this.pm). | getPersistenceStore()).getEntityBridge(). | getCMRFields()[0]).getRelatedCMRField().hasForeignKey() | | && | | ((JDBCStoreManager)((CMPPersistenceManager)this.pm). | getPersistenceStore()).getEntityBridge(). | getCMRFields()[0].getInstanceValue(ctx) != null | | ) { | throw new RemoteException("Can't delete "+ctx.getEJBContext().getEJBLocalHome()+" with id="+invocation.getId()+" cause it is referenced from "+((JDBCCMRFieldBridge)((JDBCStoreManager)((CMPPersistenceManager)this.pm). | getPersistenceStore()).getEntityBridge().getCMRFields()[0]).getRelatedCMRField().getEntity().getLocalInterface()); //$NON-NLS-1$ | } | | } | | return super.invoke(invocation); | } | | | public Object invokeHome(Invocation invocation) throws Exception { | | return super.invokeHome(invocation); | } | } | | Could somebody with thorough knowledge of JBoss CMP internals glance at this code and say if it is acceptable? Aren't there some issues with caching, lazy loading or something else which might prevent it from working correctly? wbr, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869356#3869356 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869356 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Referential Integrity
Yes, implementing checks in the ejbRemoves would be simpler but also error-prone. I think that "foreign key" approach to the data integrity is much more valuable when dealing with enterprise data, when implicit data modification might cause severe consequences. Besides this, as far as i can see it is impossible to check in the ejbRemove references to the objects being deleted unless we make all relationships bidirectional. Consider unidirectional many-to-one relationship from B to A, i.e. B has a getter for A, but A has no getters for collection of related Bs. In this case when A is being deleted there is no way to check for related Bs in ejbRemove. Or i'm missing something? thanx. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869666#3869666 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869666 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Sorting by attributes of the related objects
I run into the problem while sorting by attributes of related objects... In the ejb spec it is said that "each orderby_item must be an orderable cmp-field of the entity bean abstract schema type value returned by the SELECT clause." Thus, when an "identification variable variable x, denoted as OBJECT(x)" is being selected it should not be possible to sort by attribute y of a related entity z, like SELECT OBJEXT(x) FROM Xxxx AS x ORDER BY x.z.y. Despite this JBoss allows to run such queries, at least dynamic ones. The only problem with this it is that JBoss does not reutrn objects when reference to the related entity is null. This happens because it generates queries without JOINS but with WHERE clause to tie tables. Thus, i have two questions: 1. Is it legal to use sorting by attributes of related objects? 2. How do you solve the problem when reference to the related object is null? Users expect all objects to be returned whether or not they have reference to the related object they sort by. thanx View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872139#3872139 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872139 --- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - LIKE and non-ASCII encoding
Hi. As far as i can see the only way to use LIKE construct with dynamic queries is to assemble pattern like in a string: String query = "SELECT OBJECT(x) AS x FROM Xxx WHERE x.name LIKE '"+pattern+"'"; ... It works fine while searching in english text but fails to deal with non-ASCII encoding. I've attempted to make pattern an input parameter (Since ejb spec says, that The pattern_value is a string literal or a string-valued input parameter) but without any success - ?1 was treated as pattern... Thanx, eugen. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873868#3873868 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873868 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: contradicting constraints and statements issue order
Hi. Unfortunately i come up with calling flush as suggested by gavin. Thus this forces me either to call entity manager from an entity bean or move domain logic into the service. I've chosen the first. wbr, eugen. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909498#3909498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909498 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user