Posts Tagged ‘Java’

28
Jan

debian üzerinde java network sorunu

   Posted by: Muhammed YÜRÜRDURMAZ    in Bilgi Ve Deneyim

üzerinde (belki diğer sistemlerinde de) uygulamarının network (veya internet) erişim sorunu varsa şunu bir kontrol edebilirsniz

cat /etc/sysctl.d/.conf
# This sysctl sets the default value of the IPV6_V6ONLY socket option.
#
# When disabled, IPv6 sockets will also be able to send and receive IPv4
# traffic with addresses in the form ::ffff:192.0.2.1 and daemons listening
# on IPv6 sockets will also accept IPv4 connections.
#
# When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6
# connections must open two listening sockets.
# This is the default behaviour of almost all modern operating systems.

net.ipv6. = 1

eğer sizde de net.ipv6.bindv6only = 1 görünüyorsa 1 olan değeri 0 yapın ve alttaki komutu çalıştırın büyük ihtimalle düzelecektir.

echo 0 > /proc/sys/net/ipv6/bindv6only
Bookmark and Share
Tags: , , , ,

Tags: , , , ,

21
Jan

hinbernate’te annotation kullanarak inheritance

   Posted by: Muhammed YÜRÜRDURMAZ    in Yazılım

bir superclass kullanarak bazı standart özellikleri eklemek için bir örnek

@
public class Base {
    @Column(name="AKTIFMI")
    private boolean aktifmi;
}
@Entity class Kayit extends BaseEntity {
    ...
}
Bookmark and Share
Tags: , , , ,

Tags: , , , ,

19
Jan

jdeveloper 11g ve tuscany

   Posted by: Muhammed YÜRÜRDURMAZ    in Bilgi Ve Deneyim

önce indirin

yeni bir proje oluşturun

tuscany jarlarını projeye ekleyin

interface ve implementation kodları

package com.aaa.testsca002;
import javax.jws.WebService;
@WebService
public interface IMerhabDunya {
public String getResponse(String message);
}
//-------------------
package com.aaa.testsca002;
import javax.jws.WebService;
@WebService
public class MerhabaDunya implements IMerhabDunya {
public MerhabaDunya() {
super();
}
public String getResponse( String message){
return message;
}
}

deneme.composite dosyası

<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns//1.0"
targetNamespace="http://debish"
name="deneme">
<service name="HelloWorldService" promote="HelloWorldComponent">
<interface. interface="com.aaa.testsca002.IMerhabDunya" />
<binding.ws />
</service>
<component name="HelloWorldComponent">
<implementation.  class="com.aaa.testsca002.MerhabaDunya"  />
</component>
</composite>

Ve çalıştırma class ı

package com.aaa.testsca002;
import org.apache.tuscany.sca.host.embedded.SCADomain;
public class DenemeMain {
public DenemeMain() {
super();
}
public final static void main(String[] args) throws Exception {
SCADomain scaDomain = SCADomain.newInstance("deneme.composite");
MerhabaDunya helloworld = scaDomain.getService(MerhabaDunya.class, "HelloWorldComponent");
while(true){
Thread.sleep(1000);
if(false)
break;
}
scaDomain.close();
}
}

project properties > compiler > copy file types to output directory alanına .composite ekle

ve çalıştırma class ını çalıştır.

loglarda servis adresi görünüyor servisi test edebilirsiniz.

Not tuscany 1.5 ile denenmiştir.

Bookmark and Share
Tags: , , , , ,

Tags: , , , , ,

18
Jan

eclipse button tıklanamama sorunu

   Posted by: Muhammed YÜRÜRDURMAZ    in Linux

üzerinde denememde bazı wizard buttonlarının tıklanamadığını ancak boşuk tuşu ile tıklanabildiğini gördüm. İşte sorunun çözümü

export GDK_NATIVE_WINDOWS=true

yukarıdakini .bash_profile dosyanıza ekleyin

Kaynak : https://bugs.eclipse.org/bugs/show_bug.cgi?id=292824

Bookmark and Share
Tags: , , , ,

Tags: , , , ,

Switch to our mobile site