Circular dependencies reference in Java

Hi all,
I would liek to ask that if there were aome effective way of overcoming the circular reference problem is Java ... that is I hav e a class A which has a reference to class B, whereas class B has a reference to class A too, it seems like a "deadlock" situation....class B does not know class A can not compile, whereas class A also know nothing about class B .
I used to over come this by a stupid trick, that is out comment the class A reference is classB first let it compiled and produce a class file ... after that compile class A, add in class A reference in class B again...seems work :)
public class classB{
private classA clsA;
     public classB(classA clsA){
          this.clsA = clsA;
public class classA{
     private classB clsB;
     public classA(){
          clsB = new classB(this);
}I used to overcome this this C++ by the class forward method like using pointer to declare the reference....
But in Java is there an effective way ??? Plz help !!!
p.s. It is said that we should never let circular dependency occurs (bad programming ) ??? but in some situation we really need that....

Isn't a doubly linked list implemented with just a
Node class that has references to previous and next
node? I.e. it's not a case where class A knows about
B, and B knows about A??My point is that circular dependencies are quite common in computer science and I've never heard they're intrinsically bad and should be avoided.
Regarding the A knows about B, and B knows about A case. If you can avoid it basically you've lowered the complexity which is good. But it can also be a question of A is defined in terms of B, and B is defined in terms of A and that could be an elegant recursive definition with low complexity which is good.

Similar Messages

  • Linux JVM: How to load shared libraries with mutual/circular dependencies

    Hi,
    I am using the API
    System.loadLibrary(String name)
    to dynamically link shared libaries to Linux JVM.
    The shared libraries has complex circular symbol dependencies among them.
    I am not able to load shared libraries due to java.lang.UnsatisfiedLinkError.
    Any ideas on how a number of shared libraries with interdependent realtionships
    could be successfully linked in to the Linux JVM?
    Thanks,
    Soumen.
    Background
    ===========
    Successful execution of native code within Java virtual machine in a
    host platform, has two necessary prerequisites:
    Prerequisite 1: The native code is written to the JNI specification
    Prerequisite 2: The native code is dynamically linked with Java virtual
    machine.
    The second step is achieved via simple Java interface, System.loadLibrary:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
    However, implementation of this interface is highly platform dependent
    in regards to exact nature of dynamic linking process.
    Tests
    =====
    I made three shared libraries libfeatureA.so, libfeatureB.so and libfeatureC.so.
    Feature A and Feature B are mutually dependent on each other (i.e cicular
    dependencies between libfeatureA.so, libfeatureB.so) whereas libfeatureC.so
    has no external dependencies.
    Case 1
    I could link libfeatureC.so with java.
    Case 2
    Java failed to resolve circular dependency between libfeatureA.so, libfeatureB.so
    resulting in linking failure. There may be repackaging workarounds which I have
    not yet explored.
    Java source code
    ================
    class TestLoadLibrary
    static
    System.loadLibrary("featureB");
    System.loadLibrary("featureA");
    System.loadLibrary("featureB");
    public static void main(String[] args)
    System.out.println("In TestLoadLibrary.main()");
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /homes/soumen/work/event/featureB/libfeatureB.so.1.0: /homes/soumen/work/ev B.so.1.0: undefined symbol: featureA_func2
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1737)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1662)
    at java.lang.Runtime.loadLibrary0(Runtime.java:817)
    at java.lang.System.loadLibrary(System.java:986)
    at TestLoadLibrary.<clinit>(TestLoadLibrary.java:5)

    The use of "dlopen() application programming" to achieve dynamic link closure works if there are
    no circular dependencies. For example, I have the following dependency:
    libfeatureD.so ==> libfeatureC.so
    Even if I call Java APIs in correct dependency order, i.e.,
    System.loadLibrary("featureC");
    System.loadLibrary("featureD");
    there would be java.lang.UnsatisfiedLinkError for call System.loadLibrary("featureD").
    Now, I have a JNI method implementation, which makes native API call in same dependency order:
    dlopen("libfeatureC.so", RTLD_LAZY|RTLD_GLOBAL);
    dlopen("libfeatureD.so", RTLD_LAZY|RTLD_GLOBAL);
    and now System.loadLibrary calls succeed. Note that I had to set environment
    variable LD_LIBRARY_PATH so that dlopen call would find libraries to load.
    In other words, from a JNI programming point of view, "linking chasm" has been crossed.
    I am looking at circular dependency issue, i.e.,
    libfeatureA.so <==> libfeatureB.so
    There may be library repackaging workaround.
    If anybody knows any workaround, please post.
    -Soumen Sarkar
    JNI code
    ========
    #include <jni.h>
    #include "TestLoadLibrary.h"
    #include <stdio.h>
    #include <string.h>
    #include <dlfcn.h>
    JNIEXPORT void JNICALL Java_TestLoadLibrary_libLoadNative
    (JNIEnv * jenv, jclass class, jobjectArray libNames)
    printf("native: In TestLoadLibrary.libLoadNative()\n");
    char linuxLibName[1024];
    jsize idx = 0;
    jsize nLibs = (*jenv)->GetArrayLength(jenv, libNames);
    for(idx = 0; idx < nLibs; ++idx)
    /* obtain the current object from the object array */
    jobject myObject = (*jenv)->GetObjectArrayElement(jenv, libNames, idx);
    /* Convert the object just obtained into a String */
    const char libName = (jenv)->GetStringUTFChars(jenv,myObject,0);
    strcpy(linuxLibName, "lib");
    strcat(linuxLibName, libName);
    strcat(linuxLibName, ".so");
    printf("\nnative: Trying to open lib with name %s\n", linuxLibName);
    void* handle = dlopen(linuxLibName, RTLD_LAZY|RTLD_GLOBAL);
    if(handle == 0)
    fputs ("\nnative: Could not load lib\n", stderr);
    fputs (dlerror(), stderr);
    else
    printf("\nnative: Loaded lib %s\n", linuxLibName);
    /* Free up memory to prevent memory leaks */
    (*jenv)->ReleaseStringUTFChars(jenv, myObject, libName);
    return;

  • Circular dependencies and structure

    lots of performance problems are caused by convoluted code. circular dependencies between classes, especially large loops lead to problems during the runtime and maintenance. there were no tools on the market that would focus on structural stability of Java software before Small Worlds. it was just released a few weeks ago. check out www.thesmallworlds.com - there is nothing quite like it

    Well, it seems he has got an email address:
    [email protected]
    Could everybody please send thousand copies of an email to this address?

  • How can I pass a String by reference in java?

    Hello!
    My question is how to pass a String by reference in java.
    I tried to declare my variable, instead of using "String xxx = "f";", I used "String xxx = new String ("f");" :
    public static void main (String []args)
    String xxx = new String("f");
    StatusEnum result2 = getErrorPointStr(xxx);
         public StatusEnum getErrorPointStr(String text)
              StatusEnum testStatus = StatusEnum.PASS;
              StringBuffer buffer = new StringBuffer();
    buffer.append("123");
              text = buffer.toString();
              return testStatus;
    After calling to getErrorPointStr(String text) function, xxx = "f"
    So it does not work.
    How can I solve this? It is very important, the function will receive String and not something else.
    Thanks!

    Tolls wrote:
    Which is why I said:
    Which is why you only managed to change what 'text' referred to in the methodExcept that's not why. Even if String was mutable, doing text = whatever; would have the same effect; it would change what that variable refers to in the method, but it would not change the object's state.
    I meant that, since there was no way to actually change the data (ie the char[] or whatever) within the object 'text' referred to, the OP was attempting to change what 'text' referred to and hoping it would be reflected outside the method...which we know won't happen as Java is pass-by-value.\Ah, now I see.
    These by-value/by-reference threads tend to get confusing, because usually the person is passing a String, so the immutability of String tends to get in the way and just muddy the waters.

  • Why we need reference in java?

    Hi
    I faced one problem while I was doing heapdump analysis.I had to find memory leak suspect.
    Somewhere in parent node I have found soft reference.
    My question is that why we need reference in java?
    and why IBM jdk1.4.2 and above have inbulit class like
    softreference
    weakreference
    phatomreference

    These Reference objects have special ways of interacting with the garbage collecor. A normal reference is, in comparison, called a "hard" reference. If an object is only reachable through a special reference it is said to be "softly reachable" or the like, and the garbage collector can collect it. When this happens the reference object is cleared, and will return null if you try to acccess the object through it.
    SoftReference tells the garbage collector "On the whole I'd like you to hang on to this, but feal free to delete it if you're short of space."
    Weakly and Phantom reachable objects are collected as normal.
    A typical use of a WeakReference is when you want to hold onto a pointer to an object as long as that object exists, but allow it to be collected when there are no other references. For example, some object might listen for events on some window, but if you abandon the object you don't want the listener to prevent the object being disposed of.
    A typical use of a SoftReference is when you've arrived at some sizable data object through a moderately expensive process e.g. retrieving it from a database. You can rebuild it if it's lost, but you can save time if it's still there when you want it again.
    A PhantomReference is used instead of finalize(). You can arrange for references to be added to a queue when cleared, and you can have a background thread removing references from the queue and doing what you like with them. By extending the Reference type you can store information needed for a clean-up.

  • @XmlAttribute/@XmlValue need to reference a Java type that maps to text

    Hi,
    I get this exception when marshalling with xjc (either 2.0.1 or 2.1.3) generated classes. The xsd looks like this:
    <xs:complexType name="ExtensionType">
         <xs:simpleContent>
              <xs:extension base="xs:anySimpleType">
                   <xs:attribute name="nombre" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="50"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="tipo" use="optional">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:minLength value="0"/>
                                  <xs:maxLength value="30"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="id" use="optional">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:minLength value="0"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:extension>
         </xs:simpleContent>
    </xs:complexType>and the generated class looks like
    public class ExtensionType {
        @XmlValue
        protected Object value;
        @XmlAttribute
        protected String id;
        @XmlAttribute(required = true)
        protected String nombre;
        @XmlAttribute
        protected String tipo;
    }If I change value's type to String I don't get the error any more. I've tried some binding customizations, but without luck.
    Any hints on how to a) customize de binding or b) modify the schema so that jaxb doesn't choke on xjc's bindings?
    tks

    I am running into the same problem. I need an @XmlValue to be an Object (xs:anyType). Here are the basic annotations:
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "argument")
    public class Argument {
        @XmlAttribute(name = "type")
        protected String type;
        @XmlValue
        protected Object value;
    }The desired output is as follows:
    <argument type="arg1.type"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">
        test
    </argument>However, I am getting the same exception: "@XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML." when attempting to marshal.
    Any suggestions would be appreciated.

  • I need a mechanism to expose action script class reference to java script

    I need a mechanism to expose action script class reference to java script

    Adobe, I think, are quite happy leaving the StageWebView as a highly efficient and low-level component accessing native functionality, so I wouldn't hold my breath on them extending it.
    That said, I believe somebody did implement an ANE that gives much more access and, according to the docs, does allow Javascript access.
    See UIWebView as per this thread; http://forums.adobe.com/message/4832821#4832821
    http://darkredz.com/ios-uiwebview-and-videoplayer-native-extension-for-air-mobile/
    G

  • BizTalk 2010, Circular type reference with Spec2000 Xsd

    Hello,
    For a electronic invoices solution, we are using the Spec2000 standard.
    My invoice schema "ATA_SparesInvoice.xsd"
    Includes "MM_CommonTypes.xsd"
    Which includes "CSDD_MM.xsd"
    Which includes "ATA_CommonTypes.xsd"
    I am receiving ATA_SparesInvoice from our supplier without any problem through an HTTP receive-send port using XML pipeline.
    But I'm now trying to send a ATA_SparesInvoice message through an HTTP POST send port, and I get the following error:
    "There was a failure executing the send pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLTransmit, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "XML assembler" Send
    Port: "EDI_ResubmitInvoice_HTTP" URI: "http://server.domain/CHC.EDI.Submit/BTSHTTPReceive.dll?Invoice" Reason: Circular type reference."
    There are a lot of types in the schema, do you know any tools that could validate the schema and pinpoint the circular reference?
    Do you know why am I receiving the error only in the XMLTransmit pipeline and not in the XMLReceive?
    One option I have is to remove the "include" and to replace the element ref by the actual base types. But all changes will be lost when schema will be updated to a newer version.
    Any other suggestions on how to solve this?
    Thank you :)

    Hi,
    Can you try to use the PassThru pipeline on this send port instead of XMLTransmit and share the results. It should not give you this error if
    you use PassThru pipeline.
    You only need to use XML Transmit when you want to promote any of the to-be-send messages to the context. If you don’t need
    to promote any value while sending, then you can use PassThru transmit.
    Your issue due to the circular import problem where one schema imports another
    XSD schema, and vice versa. 
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Implementing  circular-left shift in java

    i'm an fresher currently in a project on SHA algorithm
    i would like to know how to implement circular left shift in java
    whether there is any method in java to implement this ,
    if in case what package i have to import.
    please reply me,
    yours sincerely
    hari hara ganesh.d
    india

    int number= ...;
    int shift= ...;
    int rotleft= (number<<shift)|(number>>>32-shift);kind regards,
    Jos

  • Dependencies (references) tab not working for materialized views.

    I am using SQL Developer version 1.2.0 Build 29.98. I also had this problem with version 1.1.
    I have created some materialized_views that are used by assorted packages, some of which are in other schema than the one that owns the materialized_view. When I select the specific materialized_view, then click on the 'Dependencies' tab, two displays appear. the first, 'Dependencies' is populated. The second 'References' is not. When I click on 'Refresh', nothing happens. I wrote my own query to see if there was a problem with the underlying data. The query shows me that the linkage data is there, linked to the TABLE object created to support the materialized_view object.
    SELECT
    i.owner AS input_owner,
    i.object_name AS input_name,
    i.object_id AS input_id,
    o.owner,
    o.object_name,
    o.object_id,
    o.TIMESTAMP,
    o.status
    FROM dba_objects i
    INNER JOIN
    public_dependency p
    ON (referenced_object_id = i.object_id)
    INNER JOIN
    dba_objects o
    ON (p.object_id = o.object_id)
    WHERE i.owner = :owner
    AND i.object_name = :object_name

    We finally got Office Web Apps installed and now the Most Popular is working.  Of course that means only when the documents are viewed in the Office Web App are they recorded for the Most Popular report.  We've done some testing and opening the
    file directly in the desktop application, or even editing the file directly in the desktop application are never recorded.  My one disclaimer with this is we are using Office 2010, I'm curious if Office 2013 perhaps records views and edits using the desktop
    application?
    Luckily the latest OWA patch now allows PDF's to open in the Word Office App as well, so those views are recorded.  If you have any non office or non PDF in the library, views will not be recorded for these items unfortunately.
    I can't believe how this isn't documented anywhere. 
    Nick Hurst

  • Circular Dependencies Question

    I want to see if anybody has some good ideas on how to solve this.
    I have about 20,000 slocs in one main package and about 5 sub-packages.
    All of the dialogs in the system originally set the parent component to null(i.e JOptionPane.showConfirmDialog(null,blah...). Which can create problems on some platforms of "loosing" the dialog...
    The class that is the frame is in the main package, and it uses things in all of the sub-packages, the sub packages currently do not import the main package. Is there a way set the main frame as the parent of all the dialogs in the sub packages without creating a circular dependecy?
    My idea was to make the main frame a singleton, so MainFrame.getInstance() can be the parent, but this doesn't eliminate the circular dependency. Same thing with passing a reference through the sub packages(which I would like to avoid).
    Any ideas?

    Depending on where you're constructing your dialogs, you may be able to loop on Component.parent() until you find a Dialog or Frame.

  • Runtime reference from Java DC project

    I have a Java DC prjoect which access CAF service through localejb calling.
    If this DC is used as library in web module, we can defined its runtime reference in application-j2ee-engine.xml of enterprise applicaton, and it works fine.
    The problem comes when we used the Java DC in webdynpro DC, the runtime reference defined in Library references(cafruntimeapilib) and Sharing references(sap.com/cafruntime~ear) of Web Dynpro Reference seems not work, and we always have java.lang.NoClassDefFoundError: com/sap/caf/rt/exception/CAFRetrieveException,   ClassNotFoundException, ...
    Any one knows how to slove this probleam?

    Hi,
    Thanks for your reply.
    The JAVA DC is wraped by a lib dc, and it is deployed and used as Library reference in Dynpro DC.
    The NoClassDefFoundError is throwing by Spring(in JAVA DC). Does Spring's class loader follow the DC reference setting?
    Caused by: java.lang.NoClassDefFoundError: com/sap/caf/rt/exception/CAFRetrieveException
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1641)
         at java.lang.Class.getConstructor0(Class.java:1953)
         at java.lang.Class.getConstructor(Class.java:1027)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:573)
         at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:117)
         at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
         at org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean.afterPropertiesSet(SimpleRemoteStatelessSessionProxyFactoryBean.java:101)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
         at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
         at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:401)
         at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:121)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:800)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:718)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:757)
    Regards,
    TS

  • How to resolve class reference in java?please join in!!

    Hello all!
    In delphi ,there is a statment of reference of class,like "class of TSomeClass,I have some code write in delphi expediently,but in java hardly,please give some suggestion.here are my codes in obj.pas writed in delphi:
    TObjClass = class of TObj;
    TObj = class(TObject); //TObj is a base class..
    class procedure TObj.basemethod(..)
    begin
    end;
    TApp=class(TObj);//TApp inherted from TObj;
    class procedure TApp.basemethod(...)//override the method in TObj
    begin
    end;
    TProp=class(TObj);//TProp inherted from TObj too..;
    class procedure TProp.basemethod(...) //override the method in TObj
    begin
    end;
    TObjlist=class(TObjectlist); //anther third class
    private Itemclass:TObjclass;
    constructor TObjlist.Create(AClass : TObjclass);
    begin
    Itemclass:=AClass;
    end;
    public TObjlist.somemethod();
    begin
    Itemclass.create; //hardly writed in java;
    itemclass.basemethod(); ////hardly writed in java to invoke class method;
    end;

    You need to study the javadocs for java.lang.Class and for java.reflect.*;
    Each class in a program has an associated Class object which you can get from the classname as MyClass.class or from an object as myObject.getClass()
    From the class object you can create a new instance, or you can get a Method or Constructor object from the class and invoke that.

  • Standalone executables and dependencies in the Java World

    I'm a very seasoned C/C++ developer who's just learning Java. I have this gnawing question that's bugging me. It's rather elementary but it requires someone with experience to answer it.
    If I'm delivering a standalone executable (C/C++) to a Windows or Linux customer, it is possible to deliver simply a "*.exe" file (windows) or a Linux Executable file (Linux) which can be installed and run immediately with no dependencies not included in a typical installation. (although, on linux, if there is a gui involved, a typical default Linux install may be missing some dependencies for the gui )
    But in the Java world, since the JRE is not necessarily included in a Standard Windows or Linux default installation, my customer would always have to install the JRE on their machine before they can run any code that I produce in Java ...correct? And there is no way to execute a jarfile as a standalone; it always must be executed by the JRE ("java -jar <jarfilename.jar> ) ...right? And if I were to code a new GUI application in Java on the Linux platform, it would have to be run via "java -jar <gui_jarfilename.jar> ...correct?

    R2me2 wrote:
    "Your questions cause me to suggest that you look into Java Web Start;"
    No, this is exactly what I'm not asking. I mean really standalone ....as in the executable runs by itself without user having to install anything else* (via CD, web or anywhere). So I suppose the answer to my question is that NO, there's no such thing in the Java World and that whenever a java program is installed, it always has the JRE as a dependency and that the installation of a java executable is not complete until the JRE is installed.Not to sound like a noob but what were you expecting. Java runs on the JRE and that is what makes it portable as the JRE can be installed almost anywhere o.O
    This is not the inconvenience that you are making it out to be. No user is gonna beef with you if they came to you asking for a java application to be installed and I most certainly have played the client role, having to download the latest JRE to run my bank applets. No so long as you provide the user with all the info they need like a link to JRE download etc you will be fine.. :)

  • Bytes to store object reference in java

    How many bytes does java uses to store a reference of an object?
    I am calculating the load on my application server from my application.

    How many bytes does java uses to store a reference of
    an object?
    I am calculating the load on my application server
    from my application.It depends on the size of the object itself, and its not a easy thing to do :S *sigh
    read this...
    http://developer.java.sun.com/developer/qow/archive/107/

Maybe you are looking for

  • Systems Emails - Invoice tags Shipping vs Billing

    Hello all, This may seem like a silly question, but I'm a bit confused on the tags for the Systems Emails - Invoice.html. I want to have two columns render for the invoice: Column#1: Bill To: {tag_ordername} {tag_addressbilling} {tag_phonecell} {tag_

  • Problem in Client authentication in JSSE  on a web service

    Hi, I am having a Web service running on my Web server (Sunone 6.1). I need to implement Security on it using JSSE. It has to be a MUTUAL authentication. I have installed all the certificates and CA certs on both Client and server. But when I try to

  • Purple lines around an image icon

    Hi all! Ive created some JButtons with a white background which have some ImageIcon's representing their use. Problem is a horrible purple border appears around the most recently selected image/text combination in the middle of the button. I've looke

  • How to Call third party Jar into Application

    Hi Can any Expert help ? I want to put third party Jar into my application but i have some problem occur. 1. how to call jar with parameter in application ? 2. when i exit the third party jar task, it will exit my main task too. How to set my main ta

  • Best book for WebLogic server 8.1

    Hi all, I am sorry for posting this message here but please ignore and might kindly be kind to help me. I have a new job where i have to use weblogic 8.1 and Eclipse as IDE. I have an idea on Weblogic Server 8.1 Platform which comes as a package incl