Message from Sascha Effert Most recent post: 10/15/2007 2 authors and 3 replies. Hello, I am writing a Metadata-Server for a Storage virtualisation using JBoss 4.2.1. There I have a cupple of physical disks used to build a virtual disk. There are EntityBeans for the the virtual disks and the physical disk. Next there exists a SessionBean to be called by the storage servers which decides which physical disk is to be used for a spcified area of the virtual disk. The askes something like "On which physical Disk schall I store block 1234 of Virtual Disk 9876?", the Session Bean initializes a distribution algorithm over the physical disks of the virtual disks and sends back which physical disk is to be used. Now my problem: The initalisation of the distribution algorithm takes much time (up to some minutes). The distribution could be reused for every request to a virtual disk if the instance could survive between calls. So I want something like a hashtable where I can store for any virtual disk an initialised instance of the distribution algorithm. Is there any way to do this in JBoss? Or do you've any other suggestion what I can do? tschau Sascha Effert read more about reusable SessionBean
Message from tom.simmons Most recent post: 10/9/2007 2 authors and 3 replies. I am using EJB3 and Toplink. I have a parent entity and a child entity that is a one to many, the child has the cascade=all defined, and the parent has a collection for all the children that belong to it. I can happily add children, and call either the create (persist) or edit (merge) methods in the facades and the parent and children will correctly be saved to the database, with the correct ID's in the children pointing to the parent. What I need to do though is be able to delete a child by saving the parent if the child has been marked for deletion. The system does not performing the deletes/adds as it goes, but instead waits until the page is submitted. So what I thought was when I save the parent, I'd be able to add something into create/edit methods of the child facade class that'd check a transient field and if it said delete'd instead call the remove method. However by adding break points in the the three persistence methods of the child facade, I can see that when calling the edit of the parent, none of these methods are used. Any ideas? read more about Toplink EJB and cascade persistence
Message from terry433iid Most recent post: 8/26/2007 4 authors and 5 replies. I'm trying to create a portal for prototyping purposes and see netbeans as the only app around in Solaris-world If so can anyone recommend a good text I can buy to get up&running here (or online docs) - and know of any sites with good examples of portals (artistic presentation not one of my strong points) thanks terry read more about newbie question : is netbeans the best app on solaris to develop web portals
Message from D.M.Jackson Most recent post: 5/6/2007 2 authors and 3 replies. Greetings Folks, I'm going through the beans trail tutorials on Sun's website trying to teach myself about JAVABeans components. The tutorial tells me to right click on the "default package" and add a MyBean class. OK, so I do this, but I notice that there is a "small print" disclaimer at the bottom of the dialog window telling me that "Since JDK 1.4 it isn't recommended to put classes in the default package." OK, so what gives? I do realize that the tutorial is based on using NetBeans IDE v.5 and that I am using v.5.5. So, what is the presently prescribed method for adding classes to beans? TIA, Mark read more about Don't put classes in default package?
Message from pokaru Most recent post: 4/8/2007 6 authors and 7 replies. Obviously, I'm new to JAVABeans. Could someone please break it down for me, what they are, and what they're good for? I hope it's true what they say, "There's no dumb question." :-D. Thanks everyone. - Peter read more about What's a JAVABean?
Message from Henning Eiben Most recent post: 2/14/2007 2 authors and 5 replies. Hi, I'm currently working on my first EJB3 project (actually my first project involving EJB at all). wrote in message an entity bean and a statless bean. So far so good. Then I wrote in message a servlet where I want to use my session bean so I included something like at the class-scope of my Servelt:[...] public class CustomerServlet extends HttpServlet { @xxxxxxxxxxx ICustomerDispatcher customerDispatch; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException [...] Unfortunatly this does not seem to work, altough I have seen this kind of code as an example on how to smoothly refer to bean. The variable "customerDispatch" is alwas null :( I also tried writing a standalone client, using the same annotation, and still ... the variable is null. Only when using something like: Context context; ICustomerDispatcher customerDispatch; try { context = new InitialContext(); customerDispatch = (ICustomerDispatcher) context.lookup(CustomerDispatcherBean.class.getSimpleName() + "/local"); } catch (NamingException e) { e.printStackTrace(); throw new RuntimeException(e); } I get my dispatcher-inctance. Could anyone give me some advice what's going wrong? Thx! read more about EJB3 Injection
Message from walt.stoneburner Most recent post: 2/8/2007 2 authors and 3 replies. In the normal world of JDBC, dealing with a transaction is trivial - get a connection, set the auto commit to false, do your stuff, call commit() if you're happy, call rollback() if you're sad, and close. Connection Pools are supposed to avoid the overhead of repeated connections to the database, and I was mistakenly under the assumption that little else changed. JBoss allows you to get a context, and from the context a connection pool, to which you use it, and upon closing, the connection is returned to the pool. However, there are several oddities I think I need explained by someone who's walked over this ground before. I'm aware that with JBoss's managed connection pool, one cannot call setAutoCommit() -- fine, it default to false, which is what I want anyhow. But I can not seem to call commit() or rollback() either. Is there some other call I'm supposed to be using? And the really weird part... even after I perform a close(), the transaction does not seem to commit immediately. Unfortunately, Googling for JBoss managed connection pools does not get much useful information. Can got any clues or can point me at an online reference about JBoss's behavior for managed connections? thx. -wls@xxxxxxxxxxx read more about Forcing Commit with a Managed Connection Pool in JBoss (j2ee)
Message from cold80 Most recent post: 2/8/2007 2 authors and 4 replies. Just to understand better...I'm studying EBJ 3.0, session beans, entities and JBoss to write web and distribuited applications for my University coruse of Web Architecture. I'm studying a lot of documentation and as a reference I'm reading the book "Mastering EJB 4th Edition". The problem is I can not understand the goal of entities...I mean...am I supposed to use them always in the same VM that is hosting the sessions beans, my jsp pages and servlets? Because if I want to develop a client application that use the session beans in order to interact with the server I need to let the entities serializable and I've to give the .class files of the entities to the client too! And this isn't very good because if I change these entities I'm supposed to deploy the new .class files to all the clients... I hope I made myself clear Thanks in advance for your help Cold read more about Question about EJB 3.0
Message from Dario Salvi Most recent post: 2/6/2007 3 authors and 3 replies. Hi, I am developing a server in JBoss 4.0.5 and I've a client done in Microsoft .Net 2 platform. I can not make them communicate. Any suggestion? Thanks a lot.Dario read more about JBoss - .Net interoperability
Message from cold80 Most recent post: 2/5/2007 2 authors and 4 replies. I was trying the first EJB example of the book "Mastering Enterprise JAVA Beans". After building the bean and deploying it successfully I had many problems making the client work. The client code is very simple public class Main { public static void main(String[] args) throws Exception{ Context ctx=new InitialContext(); Hello hello=(Hello)ctx.lookup("HelloBean"); System.out.println(hello.hello()); } } But I found many problems using the lookup method. Using the full "path" for the interface "examples.session.stateless.Hello", as specified in the book, I got Exception in thread "main" JAVAx.naming.NameNotFoundException: examples.session.stateless.Hello not bound Otherwise, using the line Hello hello=(Hello)ctx.lookup("HelloBean"); I got the error Exception in thread "main" JAVA.lang.ClassCastException: org.jnp.interfaces.NamingContext cannot be cast to examples.session.stateless.Hello So I think I was grabbing the wrong object from JBoss. Looking on many posts and web pages I found that using Hello hello=(Hello)ctx.lookup("HelloBean/remote"); I can get the right object. Why? It's really difficult for me to understand the way JNDI is naming my resources...can you give me informations about that? It'd be really appreciated... Cold read more about JNDI, session beans and JBoss
Message from madan Most recent post: 1/23/2007 2 authors and 2 replies. Online Store Application Using Spring + Hibernate + Velocity + Ajax you can check over the sample application I did when I was practicing on the above said technologies. This is a simple Online Store Application, which includes like moving over through categories, subCategories, there products and placing an order. Spring --> for Controller and Model Hibernate --> for persistance Velocity --> for views. Good startup example for newbies. This can be found at http://madan-chowdary.blogspot.com/ read more about Online Store Application Using Spring + Hibernate + Velocity + Ajax
Message from Mathieu Most recent post: 1/12/2007 2 authors and 2 replies. Salut à tous et bonne année,Alors, voilà, je suis allé sur le site http://JAVA.sun.com/, mais je n'arrive à télécharger aucun jdk, ni actuel ni ancien par exemple pour le plus récent jdk6, je sélectionne bien la version pour windows, mais il me met un message comme quoi il est recommandé d'utiliser WXP Pro SP2... je le laisse dire... SP2 je sais pas, mais wxp pro c'est ce que j'ai. Mais ensuite, j'ai un message d'erreur pendant l'installation "The cabinet file xxxx is corrupt and cannot be used", je fais "réessayer", mais ça refais la même erreur, et l'installation n'aboutit pas. Pour les autres versions c'est pareil, apparemment, c'est les fichiers d'installation qui sont abimés, je ne sais pas... Y'at-il un pb connu sur le site? Avez-vous une idée sur la question? au passage l'ordi a refusé d'installer un tout autre logiciel dont j'avais besoin (cubase en fait). Se pourrait-il qu'il y a ait un problème au niveau de mon installation windows? A+ Mathieu read more about installation jdk
Message from anselm Most recent post: 11/30/2006 3 authors and 4 replies. I'd like to use a submit button without any form data, but rather with my own data. I was thinking something along these lines: <form action="../servlet/ConfirmRasterServlet" method="post"> <button type="submit" value="Confirm Raster">Confirm Raster</button> </form> when the user clicks on "confirm raster", arbitrary data (a hashtable object from the jsp's request object for example) is sent to the servlet. Is this possible? How do I set the data to be sent? thanks in advance! read more about submit button in a jsp
Message from Joost Kraaijeveld Most recent post: 11/28/2006 2 authors and 2 replies. Hi, If I've a long lasting transaction in Stateless SessionBean during which I load an CMP EJB bean, how long is that EJB bean locked? From it's ejbLoad untill the total end of the transaction, even if I only call it's getters? TIA-- Groeten, Joost read more about How long is a CMP EJB locked in a transaction?
Message from jacksu Most recent post: 11/18/2006 2 authors and 2 replies. Hi, I created a Email Template. Using org.apache.commons.digester.Digester to parse my email.xml --- <email> <from>someone@xxxxxxxxxxx</from> <to>somebody@xxxxxxxxxxx <subject>Hello,</subject> <body> Hello {0} from {1 }</body> </email> When I tested it in the main method below. It works good. public class DigesterDriver { public static void main( String[] args ) { try { Digester digester = new Digester(); digester.setValidating(false); digester.addObjectCreate("email", EmailTemplate.class); digester.addBeanPropertySetter("email/subject", "subject"); digester.addBeanPropertySetter("email/body", "body"); digester.addBeanPropertySetter("email/from", "from"); //Sorry, the three lines below not parsed correctly so far. // digester.addCallMethod("email/to", "addTo", 0); // digester.addCallMethod("email/cc", "addCc", 0); // digester.addCallMethod("email/bcc", "addBcc", 0); File input = new File( "C:\\requestInfoEmail.xml" ); EmailTemplate et = (EmailTemplate)digester.parse(input); String[] arg = {" peter ", "zhang"}; String body = MessageFormat.format(et.getBody(), (Object[])arg); System.out.println("subject: " + et.getSubject()); read more about Why my xml file could be parsed in main method, but not in the backing bean method?
Message from crazytora Most recent post: 10/18/2006 2 authors and 2 replies. Hi I've a LogOut link which sets a session variable to null when clicked. I've teh following code for it: <% String uname = (String) session.getAttribute("UID"); if(request.getSession().getAttribute("UID") != " " ) { session.setAttribute("UID"," "); %> <br><br><center><H3> </H3> <H3><font color ="#CCCCCC" face="Times New"><b>You have been Logged Off Successfully.</b></font></H3> </center> <% } else { %> <br><br><center><H3> </H3> <H3><font color ="#CCCCCC" face="Times New"><b>You aren't Logged In.</b></font></H3> </center> <% } %> Now this works perfectly when FireFox is used but when I use IE,this does not work.The control reaches the first if loop even if the user had never logged in and there is no existing session variable and the message "you've been logged off...."is printed. Do let me know if you've any idea. Thanks. read more about Session Variables use in IE
Message from jacksuyu Most recent post: 10/9/2006 2 authors and 5 replies. My backing bean has some method to get data from database. Like; public Collection getClients() { Collection c = accountEntityBean.getClients(); return c; } In my web page, there will be a client list to show out. The problem is after I created a new client, the new client data could added to database. But the client list is still the old list. Only after I redeploy my project I could see that new data. My backing bean is a session bean. So how could I get the updated data from database. Thanks a lot! read more about How to get the updated data from database.
Message from kaedeRukawa_jp Most recent post: 10/9/2006 2 authors and 4 replies. Hi all, I am new to EJB development. I was wondering if I could look up MDB and obtain a reference to it and use it. What I am trying to do is the following: MDB_A, MDB_B, MDB_C I'd like to control the execution of A, B, C in any order using another MDB. So in that MDB, I need to obtain a reference to A, B, and C. I am running this on JBOSS. Thanks, Kaede read more about How to lookup MessageDrivenBean
Message from timasmith Most recent post: 10/2/2006 2 authors and 3 replies. Hi, For scalability which do you think performs better? Assume Oracle 10g, JBoss AS (x10), 1000 concurrent users (heavy transaction processing - mostly reads). a) Let Hibernate/JBoss Tree Cache perform caching of active content - AS pinging each other, keeping data in sync. b) Mark your objects with a version number and every time the object is requested select the version number and if the object hasn't changed return from cache. Perhaps b) is more scalable since it doesn't require activity across all servers to keep everything in synch and less restrictive since you can update the database directly - as long as you increment the version number. On the other hand the JBoss servers won't need to hit the database every time either... Thoughts? Tim read more about Performance - JBoss/Hibernate caching versus versioning
Message from mm Most recent post: 9/28/2006 2 authors and 5 replies. Hi all, How do I code a jTextPane so that when a user clicks on (let say the content of the jTextPane is "How are you?") the word "How" (only), that word will appear in another jTextPane? Any helps/samples'd be greatly appreciated. Thanks for your time. MM read more about A Simple jTextPane Problem
Message from moonhk Most recent post: 9/23/2006 2 authors and 3 replies. Do you know what problem for <jsp:getProperty name="stat" property="Hello"/> ? why property 'Hello' not in the JAVABean ? JSP as below <!-- This page was generated on <%=(new JAVA.util.Date())%>--> <!-- Using a JSP Method Declaration --> <%@xxxxxxxxxxx page buffer="none" %> <jsp:useBean id="stat" class="com.moonbean.bean01"> <% stat.setHello("book JSP"); %> </jsp:useBean> Hello User <p> <% out.println("This is " + stat.getHello()); %> <jsp:getProperty name="stat" property="Hello"/> JAVABean as below. package com.moonbean; import JAVA.util.*; public class bean01 { private int years; private String hello; public void setHello (String x) { hello = x; } public String getHello () { return hello; } public static void main(String[] args) { System.out.println("Testing"); bean01 x = new bean01(); x.setHello("Test"); System.out.println(x.getHello()); } }Error as below exception org.apache.jasper.JasperException: Cannot find any information on property 'Hello' in a bean of type 'com.moonbean.bean01' org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.JAVA:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.JAVA:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.JAVA:314) org.apache.jasper.servlet.JspS read more about JSP and JAVABean problem
Message from Sascha Effert Most recent post: 9/20/2006 2 authors and 2 replies. Hello, I've a problem using Container Managed Relationships with 2 EJBs with Container Managed Persitencies. Both EJBs have a composed Primary Key (consisting of two Long-Objects). After creating a CMR with the two EJBs (bidirectional, one to many) I get the following error from JBoss: 16:28:22,305 WARN [ServiceController] Problem starting service jboss.J2EE:service=EjbModule,module=mda2-EJBModule.jar org.jboss.deployment.DeploymentException: Atleast one role of a foreign-key mapped relationship must have key fields (or <primkey-field> is missing from ejb-jar.xml): ejb-relation-name=SPtoPD I tried implementing the relationship in jbosscmp-jdbc.xml without any change. Searching the Web resulted in some hints, that the reason is the composed PK, but I found no solution that helped me. Is it a generell Problem to use composed Keys in CMRs? Are there any things I've to mention? Poorla I found no example using EJBs with composed PKs in CMRs... Plese help... tschau Sascha Effert read more about CMR with composed PK
Message from wizzywiz Most recent post: 9/20/2006 3 authors and 4 replies. wrote in message this little program and netbeans called it Main.JAVA. ---------------------------------------------- package letters; import JAVAx.swing.JOptionPane; import JAVA.lang.String; public class Main { public Main() { } public static void main(String[] args) { String name = JOptionPane.showMessageDialog(null, "Hello world: " ); } } --------------------------------------------- But I get this error. I imported JAVA.lang.String so I do not understand why it is complaining. Thanks in advance for any ideas......thanks. --------------------------------------------- init: deps-jar: Compiling 1 source file to C:\tutorial\MyJAVAPrograms\Letters\Letters\build\classes C:\tutorial\MyJAVAPrograms\Letters\Letters\src\letters\Main.JAVA:32: incompatible types found : void required: JAVA.lang.String String name = JOptionPane.showMessageDialog(null, "Hello world: " ); 1 error BUILD FAILED (total time: 0 seconds) -------------------------------------------- read more about help...
Message from ant Most recent post: 9/18/2006 2 authors and 4 replies. hi, All I am a experienceless programmer in JAVA. I want to improve my coding technology in JAVA. So, I want to join a open-source project. If you hava some suggestiong, I hope you can tell me! thanks a lot! Best Regards! read more about I want to join a open-source project, who can give me some suggestions?
Message from ant Most recent post: 8/19/2006 3 authors and 3 replies. I am a freshman in JAVA. now,I am learn JAVABeans.do you know which book I should read?or some suggestions? my msn:qixiangnj@xxxxxxxxxxx waiting for your reply! Best Regards! read more about do you give me some suggestions to learn JAVABeans?
Message from David Most recent post: 8/13/2006 2 authors and 3 replies. Hello there, I Made a small Application in Netbeans recently, compiled it and went to fun the jar file through command line and I get this message, Can anyone help me find the issue? Registry key 'Software\JAVASoft\JAVA Runtime Environment\CurrentVersion' has value '1.5', but '1.3' is required. Error: couldn't find JAVA.dll Error: couldn't find JAVA 2 Runtime Environment. Press any key to continue . . . I can not see why on earth that the jar file'd want the 1.3 version, because I have never installed that version, and my computer has only just been recently reformated, the oldest version of the JRE on my Comp is 1.5.0_05. Any help, most appreciated Cheers. read more about Running a Jar file, Strange Error
Message from Santosh Most recent post: 8/12/2006 2 authors and 2 replies. Hi, Can anyone let me know the link for downloading xdocletgui ? The CVS link for xdocletgui seems to be broken at sourceforge. Thanks, Santosh read more about xdoclet gui
Message from hardscrabble Most recent post: 7/7/2006 2 authors and 2 replies. Hello - I work for a brand spanking new start-up in Austin Texas. We just went beta with our new j2ee deployment tool on Friday, and I want to spread the word a bit. Basically, it allows you to forego writing deployment scripts or having to document a bunch of manual configuration steps. You just maintain an XML document of your objects and the app deploys them for you. If you are interested you can check out the tool here (http://phurnace.com/index.php?title=Release ). The beta is free, and any feedback you'd be willing to give'd be greatly appreciated. Cheers. read more about New j2ee deployment tool
Message from chrismiles Most recent post: 7/7/2006 2 authors and 2 replies. Sorry I posted this to comp.lang.JAVA.programmer but I think I should have put it in here... apologies for cross posting to both groups. At the moment my system is split into the usual 3 layers - presentation, business and data. Presentation layer is composed of JSP and Servlets. My business layer is session beans, and my data layer is entity beans.Now take this scenario for example.I've my servlet which invokes getAccount(accountId) on my session bean, which in return locates a Account session bean.It has been advised to me previously that is bad practise to let your client (my presentation layer) get direct access to the entity beans.Now how can I pass my information back to the presentation layer without actually passing a entity bean? Am I best getting all the information from the entity bean within my session bean and then encapsulating in another standard class which I'll then pass to the presentation?I know it is a design/arch issue but its really boiling me.any help much apreciated. thanks in advance. read more about Design architecture problem. -- JAVA Beans / Controllers
Message from aostrik Most recent post: 7/7/2006 3 authors and 3 replies. Hi ALL, I want to start using EJB. Since only JBoss supports that technology, is it a good idea to start with EJB 3 or the time hasn't come yet?Thanx. read more about EJB 3: is it good time to start using it?
Message from timasmith Most recent post: 7/7/2006 2 authors and 3 replies. I think I am fairly smart guy, but the transaction management in Hibernate with JBoss is ****** obscure. On a side note I am sick, sick, sick to death of smart ass authors and online article gurus writing a few paragraphs on how to do xyz with 'snippets'. Read my lips: POST A WORKING EXAMPLE (or get out of my google search results) I've spent the entire day reading 'Hibernate in action' (or not in my case), online documentation, blogs, blurbs, forums and far fetched figures on how to configure transaction management with JBoss. Yes I had a single 'insert' working, calling it multiple times with many readonly reads before and after. No, I've never had the plain jane scenario work of: a) start a session /transaction/ transaction on a session/ using JTA or not or JNDI or not b) save (insert) a model c) generate a failure d) watch it all rollback No, one transaction - not a problem. Multiple either my transaction hasn't successfully started, my session closed itself, the transaction was nested, some hidden AOP flip flop intercepted and crapped over my code, I could post code, but its pointless - I could never do justice on all the combinations I've tried... I feel JDBC generated code coming back into my vogue... ...unless someone can save me. read more about bullshit JBoss JTA transactions with Hibernate persistance
Message from Sameer Most recent post: 7/3/2006 2 authors and 2 replies. Hello, I need to download BDK1.1. I searched a lot over sun.com. But not able to find. Can anybody provide the download link? I got reference of Bean Builder. But how to download that? It is available as a application residing on Sun's server and need to be run using Webstart. Please suggest a FREE GUI builder which will let me design JAVA Beans. Thanks in advance. read more about About BDK and BeanBuilder
Message from timasmith Most recent post: 6/23/2006 2 authors and 4 replies. I've a regular class, implements serializable, private variables with getter/setter. Nothing prints - despite being populated - ahhh driving me nuts The plot thickens when I use hardcoded strings to set the properties i.e. instead of cp.getUserName() I used "username" If I put println in the method it proves there is data... public void saveConnection(ConnProperty cp) ConnProperty conn = new ConnProperty(); conn.setUsername(cp.getUserName()); conn.setDriverClass(cp.getDriver()); conn.setPassword(cp.getPassword); conn.setUrl(cp.getUrl()); ConnectionList.setConfigFileName("test.xml"); ConnectionList list =new ConnectionList(); list.add(conn); SerializeUtility.serializeXML(new File(filename), list.elements()); public static void serializeXML(File file, Enumeration e1) throws IOException { XMLEncoder encoder = null; try { encoder = new XMLEncoder( new BufferedOutputStream( new FileOutputStream(file))); while (e1.hasMoreElements()) { encoder.writeObject(e1.nextElement()); } } catch (Exception ex) { Debug.LogException("SerializeUtility", ex); } finally { if (encoder != null) { encoder.close(); } } } package com.osframework.datalibrary.common; import JAVA.io.Serializable; public class ConnProperty implements Serializable { private static final long seri read more about *help* my XMLEncoder.writeObject isn't doing all fields
Message from Srik Most recent post: 6/13/2006 2 authors and 3 replies. I am new to EJBs. I've written a Session bean and I tried to compile. But the import statement "import JAVAx.ejb.*" gives a compilation error. Do I have to include any other jar in the classpath? read more about EJB newbie
Message from praveen Most recent post: 6/6/2006 3 authors and 3 replies. I've a stateless session bean with a method that take a byte array as an argument to save the incoming data to a file. Remote client, when invokes this method with a smaller size file it works fine but when I try to send a file of size about 100mb it raises an exception. Here is the stack trace:JAVA.net.SocketException: Software caused connection abort: socket write error JAVA.rmi.UnmarshalException: Software caused connection abort: socket write error; nested exception is: JAVA.net.SocketException: Software caused connection abort: socket write error at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.JAVA:297) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.JAVA:244) at com.burntsand.hmco.dam.aps.session.statelessSession_oizvbi_EOImpl_812_WLStub.setPublicationResult(Unknown Source) at com.burntsand.hmco.dam.aps.session.APSClient.main(APSClient.JAVA:187) Caused by: JAVA.net.SocketException: Software caused connection abort: socket write error at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.JAVA:108) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.JAVA:284) ... 3 more Caused by: JAVA.net.SocketException: Software caused connection abort: socket write error at JAVA.net.SocketOutputStream.socketWrite0(Native Method) at JAVA.net.SocketOutputStream.socketWrite(SocketOutputStream.JAVA:92) at JAVA.net.SocketOutputStream.write(SocketOutputStream.JAVA:13 read more about Error calling an EJB method passing a large byte array
Message from jasonsig Most recent post: 6/2/2006 2 authors and 4 replies. My webservices consists of apache axis and a bean (non ejb) that advertises one method as a webservice. Is a new class created for every thread that access the webservice? If so this'd mean that class variables'd be thread safe? Or does it behave more like a servlet where multiple threads share a single instance of the servlet and the methods and local variables within the methods are assigned per thread memory alocation ?How'd I access application based varaibles within my webservice class? For example I need a enviroment variable that is checked by the webservice class. Currently I use the jndi and pull it from the context.xml file. This requires every instance of the class to get this information. For example using the PageContext or ConfigContext within my bean to retrieve startup variables from the container and then store them. thx jason read more about webservices
Message from crazybird2005 Most recent post: 6/1/2006 2 authors and 2 replies. I want to run jasp and servlet code in the tomcat server. What are starting steps for that. Please answer quickly. read more about Query about running JSP/Servlet pages
Message from julien Most recent post: 5/25/2006 2 authors and 3 replies. Hi, I'm a french student and I have an EJB Project. I've a little problem. I've two EJB entity linked to 2 postgresql database. I explain my problem. In the file sun-ejb-jar.xml, you must specify the JNDI name (CMP resource). But I've 2 resource name : "etud_einstrumentation" and "etud_journal" for my 2 EJB. So I can just specify one. Theferore, when I deploy my EJB, I can access to only one (only the ejb specified in JNDI name works). If I specify "etud_einstrumentation" in the field, the EJB linked to the database etud_einstrumentation works and the other say : NestedException: org.postgresql.util.PSQLException: ERROR: relation "etud_journal" doesn't exist If I specify "etud_journal" in the field, the EJB linked to the database etud_journalworks and the other say : NestedException: org.postgresql.util.PSQLException: ERROR: relation "etud_einstrumentation " doesn't exist You've an idea to specify the two JNDI resource ? Tks read more about [HELP] Netbeans EJB with 2 Databases problem
Message from Nico Most recent post: 5/24/2006 2 authors and 2 replies. Hi, I have more entity beans that must leave their messages on a queue and I have more message-driven beans that must read the messages on the queue. can I implement this situations? how? maybe I must use a topic instead of the queue, but can differets entity beans leave their messages in the same queue or topic? thanks and sorry for my english... :-) nico read more about JNS and EJB
Message from timasmith Most recent post: 5/22/2006 2 authors and 2 replies. Hi, I've entity beans which act purely in a stateless service fashion - essentially executing SQL and performing business logic and then returning business objects. I establish the JDBC connection manually and all the beans *seem* to be using the same connection since it is accessed statically. I dont know whether that creates a problem if the beans are all their own threads.. anyway. I am all for some pooling - I vaguely remember someone suggesting that standalone JDBC can easily pool for you - without a container or anything else. If so I am not sure what I'd get from an EJB datasource beyond some transaction management possibilities down the road if I cant architect around it. So my question is a) can I pool with POJO and b) is it far better to have the container do it? Note I generate and execute my own SQL - no real entity beans here. thanks Tim read more about pooling the JDBC connection
Message from timasmith Most recent post: 5/17/2006 3 authors and 4 replies. How very frustrating that JBoss runs so easily on Windows XP and it has been such as battle on linux - SuSe. What is the error message I hear you cry... here it is... JAVA.net.BindException: Address already in use:8080 This is a brand new Suse 10 install with JAVA 1.5 installed , JAVA_HOME set and the latest JBoss downloded 4.0.4 The port isn't in use prior to starting JBoss but is about 1/2 way through... After the error I get a ton of scrolling stack traces which can only be a bad thing...